Modify Space

Last Updated on : 2023-06-15 06:05:10

Modify the information about a space node, including the name and type, based on the specified parameters such as the community ID.

API address

PUT: /v1.0/iot-02/community/space/{block_id}

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringuritrueThe ID of a community.

Description of body

Parameter nameTypeINRequiredDescription
parent_tree_idString trueThe ID of a specified parent node.
meta_codeString trueThe type of space node.
valueString trueThe name of the space node.
building_typeInteger falseThe type of building.
  • 1: Commercial building.
  • 2: Residential building.
  • 3: Commercial and residential building.
building_towardInteger falseThe direction of a specified building.
  • 1: East.
  • 2: South.
  • 3: West.
  • 4: North.
building_addressString falseThe geographical location of the building, including the latitude and longitude.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

PUT: /v1.0/iot-02/community/space/136767399153950xxxx
{ "meta_id": "2", "parent_tree_id": "138251326624431xxxx", "block_id": "138251326624431xxxx", "building_toward": 1, "building_type": 1, "building_address": "30.298229, 120.086103", "value": "Building 1", }

Return example

true

Error code

For more information, see error code.