Modify House

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

Modify the information about a house, such as the house area, status, and name, based on the space ID of the house node. A response is returned to indicate whether the operation is successful.

API address

PUT: /v1.0/iot-02/community/room/{tree_id}

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
block_idString trueThe ID of a community.
tree_idString trueThe space ID of a specified house node.
room_siteString trueThe name of a specified house.
room_nameString trueThe name of a specified house.
room_statusString trueThe status of the house.
  • 2: Vacant.
  • 3: Sold.
  • 5: Rented.
  • 6: For personal use.
  • 7: For sale.
  • 9: Others.
room_sizeString trueThe area of the house.
door_modelString trueThe layout of the house. For example, 3/2/1/1 means three bedrooms, two rooms (including one living room and one dining room), one kitchen, and one bathroom.
room_towardInteger falseThe house orientation.
  • 1: East-facing.
  • 2: South-facing.
  • 3: West-facing.
  • 4: North-facing.
hand_over_dateLong falseThe date on which the house was delivered.
period_intString falseThe tenure of property rights.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

PUT: /v1.0/iot-02/community/room/136767399153950xxxx
  "block_id": "138230001889922xxxx",
  "room_status": 5,
  "room_size": "1",
  "room_img": "",
  "room_site_id": "139208325392556xxxx",
  "room_site": "Grand Center_xx1, Unit 1, Building A",
  "period_int": "70 years",
  "room_name": "101",
  "hand_over_date": "2021/10/10",
  "door_model": "3/2/1/1"

Return example


Error code

For more information, see error code.