OpenTV ENTera & OpenTV Platform Documentation
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2

Unsubscribing devices from a topic

Request

To unsubscribe one or more devices from a topic, send a PUT request to:

http://<host>:<port>/mib/v1/topics/{topicName}/devices

Headers

  • Content-Type: application/json

Mandatory fields

  • topicName (in both URL and payload) –the name of the topic

  • active – set to true to leave the topic active, or to activate it if it is not active. (true is the default.)

  • devices – one object for each device to be unsubscribed, containing:

    • deviceId – the unique ID of the device

    • subscriptionStatus – set this to false to subscribe the device.

Example

A request with this payload unsubscribes the specified devices from a topic (and creates the topic if it does not already exist):

{
  "topicName": "New-Videos",
  "active": true,
  "devices": [
    {
      "deviceId": "59bb5fbbc6f9d5000801ae28",
      "subscriptionStatus": false
    },
    {
      "deviceId": "59bb5fbbc6f9d5000801ae29",
      "subscriptionStatus": false
    },
    {
      "deviceId": "59bb5fbbc6f9d5000801ae30",
      "subscriptionStatus": false
    }
  ]
}

The devices must already be registered with DMM.

Response

A successful request returns an HTTP 200 status.

An unsuccessful request returns an HTTP 404 status if the topic does not exist.

See also

For full details of this API, see the DMM API documentation.