Create House

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

Create a house and add extension information. A house is a leaf node in the entire project space. You can add a house node under the floor space. parent_tree_id is the space ID corresponding to the floor space, and it is returned when you add a space node. A unique house ID in the SaaS solution will be returned if the house is created successfully.

API address

POST: /v1.0/iot-02/community/room

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
block_idString trueThe ID of the community.
parent_tree_idString trueThe ID of a specified parent node.
meta_codeString falseThe house type.
room_siteString falseThe house location.
room_nameString falseThe house name.
room_statusString falseThe house status.
room_sizeString falseThe house area.
door_modelString falseThe house layout.
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
resultStringThe space ID of a specified house node.

Request example

POST: /v1.0/iot-02/community/room
{
  "block_id": "138230001889922xxxx",
  "room_status": 5,
  "room_size": "1",
  "room_img": "",
  "room_site_id": "139208325392556xxxx",
  "address": "Room xx1, Unit 1, Building A, Grand Center",
  "period_int": "70 years",
  "room_name": "101",
  "hand_over_date": "2021/10/10",
  "door_model": "3/2/1/1"
}

Return example

"136767399153150xxxx"

Error code

For more information, see error code.