List of marks before or after a specific date
Returns a sorted list of marks based on the date, either from the greatest to the smallest (from smallest to greatest) after/before a specified date.
GET/api/v1/cameras/{camera}/marks/rewindHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
cameraoptional | int | Camera identifier | |||||||
fromrequired | date | Date from which the markers will be displayed | |||||||
rewindrequired | string | If the value is «next», the markers created after the specified date will be returned and sorted by date from the smallest to the greatest. If the value is «previous», the markers created before the specified date will be returned and sorted by date from the greatest to the smallest | |||||||
typesrequired | array | Only types from the «types» array will be included in the response. The list of available types can be found in Main configurations |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid | ||||||||
403 | If a requested mark type is not available to the current user | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|