Add or change the PIN for a device – DTH
Request
To add or change the PIN for a device, send a PUT request to:
http://<host>:<port>/cag/v1/{casInstanceName}/devices/{deviceId}/pin/{pinNum}
Mandatory fields
casInstanceName
deviceId
pinNum
Example
The following request sets the value of the PIN to 1234 for the specified device:
http://<host>:<port>/cag/v1/irdeto/devices/245098240/pin/1234
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": "createParentalPinCode",
"id": "000100978",
"responseCode": "1028",
"responseText":"OK"
}
]
}
See also
For full details of this API, see CAS Gateway (CAG) API Documentation.