Add Monitor

Last Updated on : 2023-06-21 07:13:08download

Add a monitor. You can customize the monitor name and ID.

API address

POST: /v1.0/iot-03/statistical-indicators/monitors

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
monitor_idStringbodytrueThe monitor ID. Contain only numbers, uppercase and lowercase letters, or underscores.
nameStringbodytrueThe name of a specified monitor.

Return parameter

Parameter nameTypeDescription
resultStringThe IDs of added monitors.

Request example

POST: /v1.0/iot-03/statistical-indicators/monitors
{
  "name": "Video Monitoring of Building A",
  "monitor_id": "m00101"
}

Return example

{
    "result": "m00101",
    "t": 1632464908092,
    "success": true
}

Error code

For more information, see error code.