Update status of a command
POST/v1/commands/updateStatus
Updates the status of a command.
Update status works only if current command status is either one of pending
, received
, processing
.
Also the status can move forward only. For example, if current status is received
it can not be set to pending
.
note
Once the command status is updated to be either success
or failure
, the command status can no longer be updated and command is considered to be concluded!
Marking command to be concluded also removes that command from command list.
If command status is not updated to the conclusion, the status will be considered as expired
after expiry interval
MQTT Topic
$anedya/device/{deviceid}/commands/updateStatus/json
Request
- application/json
Body
reqId string
commandId string
status string
ackdata string
ackdatatype string
Responses
- 2XX
Success
- application/json
- Schema
- Example (from schema)
Schema
reqId string
success string
error string
errorcode string
{
"reqId": "string",
"success": "string",
"error": "string",
"errorcode": "string"
}
Loading...