OpenTV ENTera & OpenTV Platform Documentation
26.26_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
26.26_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

Subscribe devices to metadata alerts

Request

To subscribe one or more devices to the metadata alerts topic, send a PUT request to:

https://<host>:<port>/mib/v1/topics/MetaDataChanges/devices

This is an operator API and should not be called from a client application.

It is typically called from an operator's CRM system.

Headers

Mandatory arguments

  • topicName (in both URL and payload) – the name of the topic (in this case, MetaDataChanges)

  • 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 subscribed, containing at least:

    • deviceId – the unique ID of the device

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

Example

A request with this payload subscribes the specified devices to the MetaDataChanges topic:

JSON
{
  "topicName": "MetaDataChanges",
  "active": true,
  "devices": [
    {
      "deviceId": "59bb5fbbc6f9d5000801ae28",
      "subscriptionStatus": true
    },
    {
      "deviceId": "59bb5fbbc6f9d5000801ae29",
      "subscriptionStatus": true
    },
    {
      "deviceId": "59bb5fbbc6f9d5000801ae30",
      "subscriptionStatus": true
    }
  ]
}

The devices must already be registered with DMM. See Registering a device.

Response

A successful request returns an HTTP 200 status.

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

An unauthorised request returns an HTTP 401 status – for example, if the access token is invalid or has expired.

A forbidden request returns an HTTP 403 status – for example, if the access token is missing or the user does not have the operatorRole role.

See also

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