Modify Room Devices

Last Updated on : 2023-06-20 14:36:49download

Modify the devices in a room under a specified home.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueThe ID of a home.
room_idLonguritrueThe ID of a room.

Description of body

Parameter nameTypeINRequiredDescription
device_idsListbodytrueThe last device ID saved for the room.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

PUT: /v1.0/homes/312321/rooms/2341231/devices
  "device_ids": [

Return example


Error code

For more information, see error code.