Room
Rooms group devices and each device can only be part of one room.
List all available rooms
Room Success Response
Unauthorized
Forbidden
Not Found
Method Not Allowed
Not Acceptable
Conflict
Too Many Requests
Internal Server Error
Service Unavailable
Insufficient Storage
GET /clip/v2/resource/room HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Accept: */*
{
"errors": [
{
"description": "text"
}
],
"data": [
{
"type": "light",
"id": "3883f8bf-30a3-445b-ac06-b047d50599df",
"id_v1": "/lights/8",
"children": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
],
"services": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
],
"metadata": {
"name": "text",
"archetype": "living_room"
}
}
]
}
Create a new room
Type of the supported resources (always room
here)
Success
Unauthorized
Forbidden
Not Found
Method Not Allowed
Not Acceptable
Conflict
Too Many Requests
Internal Server Error
Service Unavailable
Insufficient Storage
POST /clip/v2/resource/room HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"children": [
{
"rid": "00afc7d2-bae5-4613-8cd8-5ba0d064a572",
"rtype": "light"
}
],
"metadata": {
"name": "TV Room",
"archetype": "tv"
}
}
{
"errors": [
{
"description": "text"
}
],
"data": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
]
}
Get details of a single room from its given {roomId}
ID of the room
Room Success Response
Unauthorized
Forbidden
Not Found
Method Not Allowed
Not Acceptable
Conflict
Too Many Requests
Internal Server Error
Service Unavailable
Insufficient Storage
GET /clip/v2/resource/room/{roomId} HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Accept: */*
{
"errors": [
{
"description": "text"
}
],
"data": [
{
"type": "light",
"id": "3883f8bf-30a3-445b-ac06-b047d50599df",
"id_v1": "/lights/8",
"children": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
],
"services": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
],
"metadata": {
"name": "text",
"archetype": "living_room"
}
}
]
}
Update a single room from its given {roomId}
ID of the room
Type of the supported resources (always room
here)
Success
Unauthorized
Forbidden
Not Found
Method Not Allowed
Not Acceptable
Conflict
Too Many Requests
Internal Server Error
Service Unavailable
Insufficient Storage
PUT /clip/v2/resource/room/{roomId} HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"type": "text",
"children": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
],
"metadata": {
"name": "text",
"archetype": "living_room"
}
}
{
"errors": [
{
"description": "text"
}
],
"data": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
]
}
Delete a single room from its given {roomId}
ID of the room
Success
Unauthorized
Forbidden
Not Found
Method Not Allowed
Not Acceptable
Conflict
Too Many Requests
Internal Server Error
Service Unavailable
Insufficient Storage
DELETE /clip/v2/resource/room/{roomId} HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Accept: */*
{
"errors": [
{
"description": "text"
}
],
"data": [
{
"rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
"rtype": "device"
}
]
}
Last updated
Was this helpful?