command/unsubscribe

Unsubscribes from device commands.

Authorization

Access JSON Web Token (GetDeviceCommand)

Request Topic and Payload

Topic

dh/request

Payload Representation

{
    "action": {string},
    "requestId": {object},
    "subscriptionId": {integer}
}

Payload Parameters

Property NameRequiredTypeDescription
actionYesstringAction name: command/unsubscribe
requestIdNoobjectRequest unique identifier, will be passed back in the response message.
subscriptionIdNointegerAn identifier of the previously made subscription to unsubscribe from. If not specified, unsubscribe from all user subscriptions.

Response Topic and Payload

Topic

dh/response/command/unsubscribe@{clientId}

Payload Representation

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

Payload Parameters

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