Get cabinets consumption
GET/workspaces/:workspace_id/consumption/cabinets
This endpoint returns the consumption data for the workspace cabinets.
Request
Path Parameters
workspace_id stringrequired
Workspace ID
Query Parameters
start date-timerequired
Start date of the data range
end date-timerequired
End date of the data range
s string
Shift ID
Responses
- 200
- 400
- 500
OK response.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
cabinets
object[]
Cabinets of the workspace
alarm booleanrequired
Alarm status of the cabinet
asset_type stringrequired
Type of the cabinet
id stringrequired
ID of the cabinet
last_data_ts string
Last data timestamp
name stringrequired
Name of the cabinet
status stringrequired
Status of the cabinet
{
"cabinets": [
{
"alarm": true,
"asset_type": "string",
"id": "string",
"last_data_ts": "string",
"name": "string",
"status": "string"
}
]
}
bad_request: Invalid request
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
Message of error
{
"message": "invalid request"
}
internal_error: Internal server error
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
Message of error
{
"message": "invalid request"
}
Loading...