Page
103
Setting Solo Meter
Method: PATCH
URL: /api/op/presets/solo-meter
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/solo-meter file_data.json
file_data.json content:
{
"meter_number": 5
}
Example responses
:
A.
On Success: All valid meter in preset:
{
"status": 200,
"unit_name": "iAM-Series",
"serial_number": "123456",
"model": "iAM-Mix-IP",
"message": "Solo meter : 5 has been applied successfully",
"api_version": 2
}