Delete the device in the room under the family

Last Updated on : 2023-05-22 06:38:13download

Used to delete the equipment in the designated room under the family.

API address

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

Request parameter

Parameter name Type IN Required Description
home_id Long uri true Family ID
room_id Long uri true Room ID

Description of body

Parameter name Type IN Required Description
device_ids List true Device ID list

Description of device_ids

Parameter name Type IN Required Description
device_ids String false The ID of the device to be deleted. Multiple devices can be deleted, separated by a comma (,)

Return parameter

Parameter name Type Description
result Boolean Return to device deletion status.
  • true: successful deletion
  • false: deletion failed

Request example

DELETE: /v1.0/homes/31****/rooms/234****/devices
{}

Return example

true

Error code

For more information, see error code.