Delete Room

Last Updated on : 2024-09-10 01:49:21

You can delete the specified room in the family through this API.

API address

DELETE: /v1.0/homes/{home_id}/rooms/{room_id}

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueFamily ID
room_idLonguritrueRoom ID

Return parameter

Parameter nameTypeDescription
resultBooleanExecution result:
  • true: Successful execution
  • false: Execution failed

Request example

DELETE: /v1.0/homes/312321/rooms/2341231
{}

Return example

true

Error code

For more information, see error code.