command/update

Updates an existing device command on behalf of device.

Request Message

Authorization

Access JSON Web Token (UpdateDeviceCommand)

Message Representation

{
    "action": {string},
    "requestId": {object},
    "deviceId": {string},
    "commandId": {integer},
    "command": {
        "status": {string},
        "result": {object}
    }
}

Message Parameters

Property NameRequiredTypeDescription
actionYesstringAction name: command/update
requestIdNoobjectRequest unique identifier, will be passed back in the response message.
deviceIdYesstringDevice unique identifier.
commandIdYesintegerDevice command identifier.
commandYesobjectA DeviceCommand resource to update.
command.statusNostringCommand status, as reported by device or related infrastructure.
command.resultNoobjectCommand execution result, an optional value that could be provided by device.

Response Message

Message Representation

{
    "action": {string},
    "status": {string},
    "requestId": {object}
}

Message Parameters

Property NameTypeDescription
actionstringAction name: command/update
statusstringOperation execution status (success or error).
requestIdobjectRequest unique identifier as specified in the request message.