device_status
to OK
, otherwise set it to FAILED
.Authorization: Bearer ********************
{
"device_status": "FAILED_OFFLINE",
"device_status_reason": "Command scheduled"
}
curl --location --request PATCH 'https://mock.apidog.com/m1/479670-0-default/v1/command/' \
--header 'Content-Type: application/json' \
--data-raw '{
"device_status": "FAILED_OFFLINE",
"device_status_reason": "Command scheduled"
}'
CHARGE
or DISCHARGE
onlypower_mode
is SETPOINT
. In Watts, always a non-zero positive integer.OK
means that the command is happening.OK
means that the device is ready to perform the command.device_status
. We will use it when we set device_status
to PENDING
, and feel free to use it as well when setting to OK
or FAILED
.{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"device_id": "xyz-123",
"starts_at": "2025-04-30 12:00:00.000Z",
"ends_at": "2025-04-30 14:00:00.000Z",
"duration_s": 7200,
"is_preparatory_action": true,
"battery_commands": {
"mode": "BACKUP",
"power_mode": "FOLLOW_LOAD",
"setpoint_w": 5000,
"enable_grid_import": true,
"enable_grid_export": true,
"backup_reserve_percentage": 20,
"maximum_charge_percentage": 90
},
"status": "CANCELED",
"device_status": "FAILED_OFFLINE",
"device_status_reason": "Command scheduled",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}