Assets
Update asset
Update an existing assets properties or controller.
Note that to update availability you should use the POST /availability route
PATCH
/
entities
/
asset
/
{asset_id}
Authorization
Path
Body
curl --request PATCH \
--url http://localhost:8001/entities/asset/{asset_id} \
--header 'Content-Type: application/json' \
--data '{
"alias": "<string>",
"controller": {
"get_level_webhook": "<string>",
"set_level_webhook": "<string>"
},
"is_aggregate": true,
"properties": {
"applicable_standards": {},
"capacity_kwh": 123,
"connection_type": "long_term_parallel",
"frequency_measurement_accuracy_pct": 123,
"frequency_measurement_frequency_hz": 123,
"import_meter_ids": [],
"lat": 123,
"lat_lng_polygon": [],
"lng": 123,
"max_export_kw": 123,
"max_import_kw": 123,
"max_runtime_s": 123,
"median_response_time_s": 123,
"metering_point": "boundary",
"min_runtime_s": 123,
"power_measurement_accuracy_pct": 123,
"power_measurement_frequency_hz": 123,
"voltage_level": 123
},
"type": "Vehicle"
}'
"<any>"
Path Parameters
asset_id
string
requiredBody
application/json
alias
string
controller
object
Collection of webhooks which we can use to control a particular asset, should a bid including this asset be accepted.
Control of assets can be either via individual AssetControllers or the main webhook.
is_aggregate
boolean
properties
object
Version for updates, which makes all fields optional
type
enum<string>
An enumeration.
Available options:
Vehicle
, Charger
, HVAC
, Solar Inverter
, Storage
Response
200 - application/json
The response is of type any
.
curl --request PATCH \
--url http://localhost:8001/entities/asset/{asset_id} \
--header 'Content-Type: application/json' \
--data '{
"alias": "<string>",
"controller": {
"get_level_webhook": "<string>",
"set_level_webhook": "<string>"
},
"is_aggregate": true,
"properties": {
"applicable_standards": {},
"capacity_kwh": 123,
"connection_type": "long_term_parallel",
"frequency_measurement_accuracy_pct": 123,
"frequency_measurement_frequency_hz": 123,
"import_meter_ids": [],
"lat": 123,
"lat_lng_polygon": [],
"lng": 123,
"max_export_kw": 123,
"max_import_kw": 123,
"max_runtime_s": 123,
"median_response_time_s": 123,
"metering_point": "boundary",
"min_runtime_s": 123,
"power_measurement_accuracy_pct": 123,
"power_measurement_frequency_hz": 123,
"voltage_level": 123
},
"type": "Vehicle"
}'
"<any>"