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

Recover sector date code – DTH

Request

If a device has not been used for a long time (more than 255 days), the stored date code will not match the date code in the Entitlement Management Messages that the CAS system sends. In this case, the date code must be recovered. To do this, send a PUT request to:

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

Mandatory fields

  • casInstanceName

  • deviceId

Example

A request with this payload recovers the date code for the specified device for one year:

{
  "years": "1"
}

Response

A successful request returns an HTTP 200 status.

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

Example

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

See also

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