Skip to content

Update presence for a device

PUT
/presence/{id}
curl --request PUT \
--url https://api.occulights.com/api/v1/presence/example \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "deviceType": "hub", "state": "occupied" }'

Update the presence status for a specific device

id
required
string

Sensor ID

Presence state, select between occupied or vacant

Media typeapplication/json

Possible values: “occupied”, “vacant”

object
deviceType
string
Allowed values: hub light
state
string
Allowed values: occupied vacant

Example

occupied

OK

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Bad Request

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Unauthorized

Media typeapplication/json
string

Example generated

example

Not Found

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Internal Server Error

Media typeapplication/json