Skip to main content
Skip table of contents

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:

CODE
{
  "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

CODE
{
  "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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.