Archive generation
When generating an archive, a record will be created in the history and returned in the response. Everything happens asynchronously.
Afterward, the VMS downloads the archive to its server and sends a push notification via a WebSocket with a download link.
The archive is deleted from the disk if it has been there for more than 3 hours. The deletion process is triggered by a cron job every 10 minutes.
To regenerate the archive, see Regeneration of the archive
POST/api/v1/downloadsHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
fromrequired | date | The date from which the archive is needed | |||||||
torequired | date | The date until which the archive is needed. | |||||||
idsrequired | array | The IDs of the cameras for which the archive will be generated |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|