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

Unsubscribing an account from a product – deployments without SSP

Request

To unsubscribe an account from a product (that is, to remove an entitlement from the account), the CRM should send a PUT request to:

https://<host>:<port>/rmg/v1/operator/entitlements/{uid}

where uid is the ID of the entitlement.

Headers

  • x-correlation-id – identifier for logging, to correlate messages across a call flow

  • Authorization – bearer token obtained in Getting an access token

  • nv-tenant-id – the tenant ID

  • Content-Type: application/json

Mandatory arguments

  • uid – the ID of the entitlement to modify (in the URL path)

  • status – the updated status of the entitlement. In this case, it must be UNSUBSCRIBED.

Optional arguments

This endpoint supports additional arguments, but for this use case, they are not used.

Example

A request with this payload unsubscribes the signed-in account from the product that entitlement specified in the URL relates to (that is, it unsubscribes the account from the product):

JSON
{
   "status": "UNSUBSCRIBED"
}

Response

A successful request returns an HTTP 200 status.

An invalid request returns an HTTP 400 status.

If the token is invalid, the request returns an HTTP 403 status.

If the tenant is invalid, the request returns an HTTP 404 status.

Example

JSON
{
  "matchedCount": 1,
  "modifiedCount": 1
}

See also

For full details of this API, see the Rights Manager (RMG) API documentation.