Authorization: Bearer ********************
{
"sourceId": "string",
"occupancyEvents": [
{
"timestamp": "2021-09-01T12:00:00.000Z",
"locationId": "string",
"locationType": "level",
"eventId": "string",
"occupied": true,
"occupancy": 0
}
]
}
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
}
]
}'
{
"sourceId": "string",
"timestamp": "2021-09-01T12:00:00.000Z",
"results": [
{
"eventId": "string",
"resultCode": 0,
"message": "string"
}
]
}