Skip to content

Update booking for a sensor

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

Update the booking status for a specific sensor

id
required
string

Sensor ID

Booking state, true = book, false = release

Media typeapplication/json

True = book, false = release

object
booked
boolean
deviceType
string
Allowed values: hub light

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