Description
Command Detail
POST
"https://192.168.0.1/ws/v2/service_cfg/decode/cc?prefccmode=[value]"
POST Syntax
Setting Parameters using
command line arguments is
limited to maximum of 26
arguments after the ?.
URI Parameters (extension to the Command URL separated by /): N/A
For POST, the value for the argument seen below must be specified, but for GET there are no values
for arguments.
Note
Table 176: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
Description
URI Argument
Preferred Closed Caption Mode
Type: String
Value: "Auto", "SA Custom", "EIA 708
”
, "Type 3", "DirectTv Type 3",
"Type 4 SA", "Type 4 ATSC", "Reserved", "DVS 157"
prefccmode
POST Examples:
Example 1: Set various CC Setting Arguments
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. This example sets the prefccmode to Auto.
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/cc?prefccmode=Auto"
If successful, the return body will look like:
"response": {
"code": "10",
"result": "success",
"message": ""
}
GET Examples:
Example 2: Retrieve the full CC Settings
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/cc"
If successful, the return body will look like:
"decode": {
"cc": {
"prefccmode": "Auto"
}
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
211
API Definitions
Decode Configuration Commands