Create Custom Dimension Node

Last Updated on : 2023-06-15 05:53:57

Create a custom statistical dimension node. For example, add a lighting dimension node to the custom purpose dimension.

API address

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

Request parameter

Parameter name Type IN Required Description
dimension_code String uri true The dimension code.

Description of body

Parameter name Type IN Required Description
nodes List false The list of dimension nodes.
parent_node_id String false The ID of a specified parent node.

Description of nodes

Parameter name Type IN Required Description
node_id String false The ID of a specified dimension node.
name String false The name of a specified dimension node.

Return parameter

Parameter name Type Description
result List The list of dimension nodes.

Description of result

Parameter name Type Description
node_id String The ID of a specified dimension node.
name String The name of a specified dimension node.

Request example

POST: /v1.0/iot-03/statistical-dimensions/usage/nodes
{ "nodes": [ { "nodeId": "1", "name": "Lighting" }, { "nodeId": "2", "name": "Air Conditioner" } ], "parentNodeId": "" }

Return example

{ "result": [ { "name": "Lighting", "nodeId": "1" }, { "name": "Air Conditioner", "nodeId": "2" } ], "t": 1624525873263, "success": true }

Error code

For more information, see error code.