
Page 93
Response JSON Object
On Success
•
string
unit_name
:
Product Name ("iAM-KTVSPORT")
•
string
model:
Product model ("iAM-Audio")
• string
serial_number
:
Product serial number
•
float
version
:
ReST API version
•
string
result
:
Information applied on the input including
Cluster and Meter configuration.
On Failure
•
int
status
:
HTTP status code.
•
string
action:
Help message
• string
message
:
Error message.
•
float
version
:
ReST API version
Status Codes:
•
200
OK
•
400
Bad Request
Invalid URL
•
404
Method is not allow
Invalid HTTP method request
•
422
Unprocessable Entity
For missing or invalid parameters
•
500
Server Error
Internal server error
Example request
:
POST /api/op/sourceselect file_data.json
file_data.json content:
{
"SourceType": "MadiOptical"
"ChannelGroup": 1
}
Example response
:
A.
On Success:
{
"unit_name":"Audio-1RU",
"unit_name":"iAM-KTVSPORT",
"model":"iAM-Audio",
"serial_number":"123456",
"version":2,
"result":
{
"ChannelGroup": 1,
"SourceType": "Madi.Optical"
}
B.
On Failure:
{
"status": 422,
"action": " For more information please see API document",
"version": 2,