Modify Room Devices

Last Updated on : 2023-06-01 06:20:15download

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 name Type IN Required Description
home_id Long uri true The ID of a home.
room_id Long uri true The ID of a room.

Description of body

Parameter name Type IN Required Description
device_ids List body true The last device ID saved for the room.

Return parameter

Parameter name Type Description
result Boolean The returned result.

Request example

PUT: /v1.0/homes/312321/rooms/2341231/devices
{
  "device_ids": [
    "ve23u9****",
    "ve23u92****"
  ]
}

Return example

true

Error code

For more information, see error code.