Calendar of events
List of analytics events by day for a period. The maximum time difference between «from» and «to» is 31 days.
The response will only include the presence of an event for each day, not the number of events.
In this request, it is necessary to provide dates in the client's time zone to correctly process the days on which events occurred for the user
GET/api/v1/calendarHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
fromrequired | string | Date from which events will be displayed | |||||||
torequired | string | Date until which events will be displayed | |||||||
camerasrequired | array | Array of camera IDs for which events will be displayed | |||||||
eventsrequired | array | Array of values for filtering analytics events |
Response | |||||||||
200 | Returns statistics on the used analytics cases | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation |
Example | |||||||||
JSON
|