Update a people count monitor if it exists, create a new one otherwise.
Security
api_key
A people count monitor to put.
- Mock serverhttps://coreapi.hoxton.ai/_mock/v1/people-count-monitors
- https://nexus.hoxton.ai/api/v1https://nexus.hoxton.ai/api/v1/people-count-monitors
curl -i -X PUT \
https://coreapi.hoxton.ai/_mock/v1/people-count-monitors \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"dailyResetTime": "00:00",
"direction1Alias": "string",
"direction2Alias": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"openingHour": {},
"reportingEndDate": "2019-08-24",
"reportingStartDate": "2019-08-24",
"siteId": "60189e9c-7d12-438c-b9ca-6998d9c364b1",
"state": "active"
}'Created.
Response
{ "dailyResetTime": "00:00", "deletedAt": "2019-08-24T14:15:22Z", "direction1Alias": "string", "direction2Alias": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "openingHour": {}, "reportingEndDate": "2019-08-24", "reportingStartDate": "2019-08-24", "siteId": "60189e9c-7d12-438c-b9ca-6998d9c364b1", "state": "active" }