Page
74
Get preset information
:
Method: GET
URL: /api/cf/presets/<int:preset ID>
URL parameters:
•
preset ID
-- preset ID (Number greater than zero)
Response JSON Object
On Success
•
string
unit_name
:
Product Name ("IAM-ETZ-G4")
•
string
model:
Product model ("iAM_MIX_IP)
• string
serial_number
:
Product serial number
•
float
api_version
:
REST API version
•
string
result
:
Preset with configuration data.
On Failure
•
int
status
:
HTTP status code.
•
string
action:
Help message
• string
message
:
Error message.
Status Codes:
•
200
OK
•
400
Bad Request
Invalid URL
•
404
Data Not Found
Invalid HTTP method request
•
500
Server Error
Internal Server Error
Example request
:
GET /api/cf/presets/5
Example response
:
A.
On Success:
{
"unit_name": "iAM-Series",
"model": "iAM-Mix-IP",
"api_version": 2,
"serial_number": "123456"
"result": {
"program": {
"Id": "",
"Name": "NoProgram"
},
"group": {
"Id": "",
"Name": "NoGroup"
},
"preset": {
"Id": 5,
"Name": "T-S-M-A",
"Data": {
"PresetConf": {
"Cat1100Source": {
"Pair": 0,
"Type": "None"
},
"ApplyCor": false,