All of the URI Arguments below apply to both GET and POST. For GET, the URI arguments do not need
any values. For POST at least one of the arguments must be specified along with the associated value the
user would like to set. In-depth CURL examples can be seen below following the table.
Note
Table 184: URI Query/Set Arguments
Description
URI Argument
ST302 Device ID
Type: String
Value: "1"
device
ST302 Stream ID
Type: String
Value: "1", "2", "3", "4"
streamid
POST Example
Example 1: Set Audio ST302 Device Stream ID
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/aud_st302?streamid=2"
If successful, the return body will look like:
"response": {
"code": "10",
"result": "success",
"message": ""
}
GET Example
Example 2: Retrieve the Audio ST302 Device Stream ID
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID:$token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/aud_302"
If successful, the return body will look like:
"decode": {
"aud_st302": {
"device": "1",
"streamid": "2"
}
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
222
API Definitions
Decode Configuration Commands