Create a report of dwell time for a given time range and given organisation
request dwell time data for an organisation and a given time range.
It is the upper bound of the date range for which to return data. The endDate is non-inclusive; i.e, the returned data will be for dates from startDate to endDate-1
It is the lower bound of the date range for which to return data. The startDate is inclusive; i.e, the returned data will be for dates from startDate to endDate-1. Dwell time reports are only available for the most recent 6 months of data; a startDate more than 6 months in the past is rejected.
- Mock serverhttps://coreapi.hoxton.ai/_mock/v1/dwell-time-reports
- https://nexus.hoxton.ai/api/v1https://nexus.hoxton.ai/api/v1/dwell-time-reports
curl -i -X POST \
https://coreapi.hoxton.ai/_mock/v1/dwell-time-reports \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"endDate": "2019-08-24",
"occupancyMonitorIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98",
"peopleCountMonitorIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"startDate": "2019-08-24"
}'OK
It is the upper bound of the date range for which to return data. The endDate is non-inclusive; i.e, the returned data will be for dates from startDate to endDate-1
It is the lower bound of the date range for which to return data. The startDate is inclusive; i.e, the returned data will be for dates from startDate to endDate-1
{ "createdAt": "string", "dwellTimeReportId": "cc3abed8-7b0e-446e-98c2-20f9781cd5e6", "endDate": "2019-08-24", "errorMessage": "string", "occupancyMonitorIds": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98", "peopleCountMonitorIds": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "reportData": [ { … } ], "startDate": "2019-08-24", "status": "completed" }