Skip to content

Update power panel

PATCH
/api/power-panels/{id}
curl --request PATCH \
--url http://localhost:3000/api/power-panels/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example", "siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "rackId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "voltage": 1, "phase": "single", "amperage": 1, "status": "active", "description": "example" }'
id
required
string format: uuid
Media type application/json
object
name
string
siteId
string format: uuid
locationId
string format: uuid
rackId
string format: uuid
voltage
integer
>= 1 <= 10000
phase
string
default: single
Allowed values: single three
amperage
integer
>= 1 <= 10000
status
string
default: active
Allowed values: active planned offline
description
string

PowerPanel updated

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
siteId
required
string format: uuid
locationId
string format: uuid
nullable
rackId
string format: uuid
nullable
voltage
required
integer
phase
required
string
Allowed values: single three
amperage
required
integer
status
required
string
Allowed values: active planned offline
description
string
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{
"data": {
"phase": "single",
"status": "active"
}
}

Validation error

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

PowerPanel not found

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}