Delete the device in the room under the family

Last Updated on : 2023-06-19 07:07:24

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 nameTypeINRequiredDescription
home_idLonguritrueFamily ID
room_idLonguritrueRoom ID

Description of body

Parameter nameTypeINRequiredDescription
device_idsList trueDevice ID list

Description of device_ids

Parameter nameTypeINRequiredDescription
device_idsString falseThe ID of the device to be deleted. Multiple devices can be deleted, separated by a comma (,)

Return parameter

Parameter nameTypeDescription
resultBooleanReturn 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.