Skip to content

Get aggregated presence duration for sensors

GET
/aggregated/presence/
curl --request GET \
--url 'https://api.occulights.com/api/v1/aggregated/presence/?id=example' \
--header 'Authorization: <Authorization>'

Get aggregated presence data for a set of sensors (default: all) within a time range

id
required
Array<string> format: uuid

Sensor IDs

since
string

Start time (RFC3339 format)

until
string

End time (RFC3339 format)

includePreceding
boolean

Include preceding event before ‘since’

OK

Media typeapplication/json
Array<Array<object>>

Example generated

[
[
{
"durations": {
"additionalProperty": 1
},
"sensorId": "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