Query Space List

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

Query the details of serval spaces.

API address

GET: /v1.0/iot-02/community/space-list

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringquerytrueThe ID of a community.
parent_tree_idStringquerytrueThe ID of a specified parent node.
name_valueStringquerytrueName.

Return parameter

Parameter nameTypeDescription
resultList

Description of result

Parameter nameTypeDescription
tree_idStringThe ID of a specified space node.
parent_tree_idStringThe ID of a specified parent node.
space_tree_nameStringThe name of the space.
full_valueStringThe full name of a specified space.
valueStringThe value of a specified space.
meta_idStringThe ID of the space type.
meta_codeStringThe space type.
childrenListThe sub-space.

Request example

GET: /v1.0/iot-02/community/space-list?block_id=137209008403933xxxx

Return example

[
    {
        "fullValue": "Room 101, Unit 1",
        "metaCode": "house",
        "treeId": "136767399153950xxxx",
        "parentTreeId": "137209008401233xxxx",
        "value": "101"
    }
]

Error code

For more information, see error code.