OpenTV ENTera & OpenTV Platform Documentation

Reset the PIN for a device – DTH

Request

To reset the PIN for a device to its default value (as defined in the CAS system), send a PUT request to:

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

Mandatory fields

  • casInstanceName

  • deviceId

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": "overwriteParentalPinCode",
      "id": "000100978",
      "responseCode": "1028",
      "responseText":"OK"
    }
    ]
}

See also

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