Get room by ID
const url = 'https://api.occulights.com/api/v1/rooms/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.occulights.com/api/v1/rooms/example \ --header 'Authorization: <Authorization>'Retrieves a specific room by ID for the authenticated tenant
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Room ID
Responses
Section titled “Responses”OK
object
Marks this room as consuming one of the company’s addon (Cisco Spaces / analytics / ghost meetings / autobooking) license slots. Manually toggled via onPutRoomAddonEnabled, capped at the addon quota, never auto-assigned. Defaults false so existing rooms are unaffected.
object
PCB hardware revision (e.g. “1.0.0”, “1.0.1”). Different revisions require different firmware builds, so this determines which firmware catalog a standalone light’s OTA updates are resolved against.
Inventory is not inside this tenant, so no foreign key here
These are mutually exclusive
These are only in use on standalone lights, otherwise they are decided by the sensor
object
Inventory is not inside this tenant, so no foreign key here
object
PCB hardware revision (e.g. “1.0.0”, “1.0.1”). Different revisions require different firmware builds, so this determines which firmware catalog a standalone light’s OTA updates are resolved against.
Inventory is not inside this tenant, so no foreign key here
These are mutually exclusive
These are only in use on standalone lights, otherwise they are decided by the sensor
Example
{ "lights": [ { "lightState": "on", "webServer": "enabled" } ], "sensor": { "lightState": "on", "lights": [ { "lightState": "on", "webServer": "enabled" } ], "webServer": "enabled" }}Bad Request
object
Example generated
{ "message": "example"}Unauthorized
Example generated
exampleNot Found
object
Example generated
{ "message": "example"}Internal Server Error