{
"sourceId": "My System",
"occupancyEvents": [
{
"timestamp": "2023-05-15T10:22:45Z",
"locationId": "D0FA9F18-6E7F-449A-8C50-30276AA9B63F",
"locationType": "space",
"eventId": "42FA8F0D-DBB6-42AC-8618-1865DD476769",
"occupancy": 3
},
{
"timestamp": "2023-05-15T10:23:45Z",
"locationId": "D0FA9F18-6E7F-449A-8C50-30276AA9B63F",
"locationType": "place",
"eventId": "71FA8F0D-DBB6-42AC-8618-1865DD476769",
"occupied": true
}
]
}sourceId is an identifier for your presence source. It is only sent once for each API call. It can be any text string and is not validated. It is useful in troubleshooting presence events when looking at the audit log of presence.timestamp Each presence event has a timestamp that indicates when the presence was detected (this can be in the past).eventId is a unique ID value for the presence event. If errors are detected when sending the presence event, the problematic eventId will be returned in the response.locationId specifies the point in the Calven location hierarchy where the presence is being reported.locationType specifies the type of location represeneted by locationId - Valid values are level, location, place, space or zone.locationId can be retieved via the /v1/analytics/locations endpointlevelId, zoneId and deskId can be retrieved via the /v1/analytics/desks endpointspaceId information cannot be programmatically retrieved currently4xx response will be returned.spaceId for one of the events may not link to a space in Calven. In these cases, the specific event will be rejected and reported in the response, but all other events will be loaded.