Bind Devices with Monitor

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

Add multiple devices to a specified monitor. Up to 20 devices can be added each time.

API address

POST: /v1.0/iot-03/statistical-indicators/monitors/{monitor_id}/devices

Request parameter

Parameter name Type IN Required Description
monitor_id String uri true The monitor ID.

Return parameter

Parameter name Type Description
result Boolean The result of adding.

Request example

POST: /v1.0/iot-03/statistical-indicators/monitors/xxx/devices
{ "devices": [ "xxx" ] }

Return example

{ "result": true, "t": 1624525873263, "success": true }

Error code

For more information, see error code.