Submit occupancy events to Calven.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"sourceId": "string",
"occupancyEvents": [
{
"timestamp": "2021-09-01T12:00:00.000Z",
"locationId": "string",
"locationType": "level",
"eventId": "string",
"occupied": true,
"occupancy": 0
}
]
}
Request Code Samples
curl --location --request POST 'https://api.calven.com/v1/occupancy' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceId": "string",
"occupancyEvents": [
{
"timestamp": "2021-09-01T12:00:00.000Z",
"locationId": "string",
"locationType": "level",
"eventId": "string",
"occupied": true,
"occupancy": 0
}
]
}'
Responses
application/json {
"sourceId": "string",
"timestamp": "2021-09-01T12:00:00.000Z",
"results": [
{
"eventId": "string",
"resultCode": 0,
"message": "string"
}
]
}
Modified at 2025-04-03 13:58:50