Assets
Update asset availability
Add to an existing asset availability's, including power and
energy readings.
This can be used to provide historical data, or your own forecasts.
Note that there is no deduplication here. If you post a new availability
update for a timepoint for which we already have an availability record,
we'll use the latest one, but the original one will not be overwritten.
POST
/
entities
/
asset
/
{asset_id}
/
availability
Authorization
Path
Body
curl --request POST \
--url http://localhost:8001/entities/asset/{asset_id}/availability \
--header 'Content-Type: application/json' \
--data '{
"periods": [
{
"kwh_available": 123,
"max_power_kw": 123,
"min_power_kw": 123,
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"power_kw": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
]
}'
This response has no body data.
Path Parameters
asset_id
string
requiredBody
application/json
periods
object[]
requiredcurl --request POST \
--url http://localhost:8001/entities/asset/{asset_id}/availability \
--header 'Content-Type: application/json' \
--data '{
"periods": [
{
"kwh_available": 123,
"max_power_kw": 123,
"min_power_kw": 123,
"period_end": "2023-11-07T05:31:56Z",
"period_start": "2023-11-07T05:31:56Z",
"power_kw": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
]
}'
This response has no body data.