Page
101
Setting Solo Meter
Method: PATCH
URL: /api/op/presets/mute-meters
URL parameters:
•
data
Data in JSON format.
Request
• H
eaders
Accept
:
application/json
Content-Type:
application/json
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
message
:
Message
•
integer
status
:
HTTP status code
On Failure
•
integer
status
:
HTTP status code.
•
string
action:
Help message
• string
message
:
Error message.
Status Codes:
•
200
OK
Request accepted for processing
•
400
Bad Request
Invalid URL
•
405
Method is not allow
Invalid HTTP method request
•
422
Unprocessable Entity
For missing or invalid parameters
Example request
:
PATCH /api/op/presets/mute-meters file_data.json
file_data.json content:
{
"meters":[
{"meter_number": 14, "mute": "Y"},
{"meter_number": 3, "mute": "N"},
{"meter_number": 18, "mute": "Y"},
{"meter_number": 1, "mute": "N"},
{"meter_number": 8, "mute": "Y"}
]
}
Example responses
:
A.
On Success: All valid meters:
{
"status": 200,
"unit_name": "iAM-Series",
"serial_number": "123456",