notification/unsubscribe
Unsubscribes from device notifications.
Authorization
Access JSON Web Token (GetDeviceNotification)
Request Topic and Payload
Topic
dh/request
Payload Representation
{
"action": {string},
"requestId": {object},
"subscriptionId": {integer}
}
Payload Parameters
Property Name | Required | Type | Description |
---|---|---|---|
action | Yes | string | Action name: notification/unsubscribe |
requestId | No | object | Request unique identifier, will be passed back in the response message. |
subscriptionId | No | integer | An identifier of the previously made subscription to unsubscribe from. If not specified, unsubscribe from all user subscriptions. |
Response Topic and Payload
Topic
dh/response/notification/unsubscribe@{clientId}
Payload Representation
{
"action": {string},
"status": {string},
"requestId": {object}
}
Payload Parameters
Property Name | Type | Description |
---|---|---|
action | string | Action name: notification/unsubscribe |
status | string | Operation execution status (success or error). |
requestId | object | Request unique identifier as specified in the request message. |
Updated almost 7 years ago