Delete House

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

Delete a specified house by the space ID of the house node. A response will be returned to indicate whether the operation is successful. Before you delete a house, confirm that all resident accounts have been transferred out of the house.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringuritrueThe ID of a community.
tree_idStringuritrueThe space ID of a specified house node.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

DELETE: /v1.0/iot-02/community/room/136767399153950xxxx/136767399123950xxxx
{
    "block_id":"138258104436502xxxx",
    "room_user_type":"FAMILY",
    "householder_id":"138258104436502xxxx",
    "expire_date":1621587021161,
    "tree_id":"138258404436502xxxx"
}

Return example

true

Error code

For more information, see error code.