OpenTV ENTera & OpenTV Platform Documentation

Unsubscribe a device from DTH products

Request

To unsubscribe a device from one or more direct-to-home (DTH) products, send a DELETE request to:

http://<host>:<port>/cag/v1/{casInstanceName}/devices/{deviceId}/entitlements

Headers

The following headers are mandatory:

  • nv-tenant-id

  • operator

Mandatory fields

  • URL parameters:casInstanceNamedeviceId

Example

The following request unsubscribes the specified device from the specified products:

http://<host>:<port>/cag/v1/iredeto/devices/245098240/entitlements?products=p01,p02

Response

A successful request returns an HTTP 200 status.

An unsuccessful request returns an HTTP 400 response if there was a problem with the request.

Example

{
  "status":"Success",
  "commandCount":1,
  "commandResults":[
    {
      "commandName": "deleteEntitlements",
      "_id": "000100978",
      "responseCode": "1028",
      "responseText":"OK"
    }
  ]
}

See also

For full details of this API, see CAS Gateway (CAG) API Documentation.