Add Device to Custom Dimension Node

Last Updated on : 2023-06-15 05:54:27

Add multiple devices to the specified dimension node for the purpose of statistics.

API address

POST: /v1.0/iot-03/statistical-dimensions/{dimension_code}/nodes/{node_id}/devices

Request parameter

Parameter name Type IN Required Description
dimension_code String uri true The dimension code.
node_id String uri true The ID of a specified dimension node.

Description of body

Parameter name Type IN Required Description
devices List false The list of devices.

Return parameter

Parameter name Type Description
result Boolean The returned result.

Request example

POST: /v1.0/iot-03/statistical-dimensions/usage/nodes/123456/devices
{ "devices": [ "123456", "123457" ] }

Return example

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

Error code

For more information, see error code.