Go to documentation repository
Page History
| Section | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
By default, the archive is exported in mp4 format. Change the format using the ExportContainerFormat registry key (see Registry keys reference guide).
Creating archive export request
Example:
POST http://192.168.15.182/createarchivetask
Content Type: application/json
Content:
{ "CameraId": "1", "From": "2016-06-27T15:10:00.00Z", "To": "2016-06-27T15:20:00.00Z"}Response:
{ "CameraId" : "1", "From" : "2016-06-27T15:10:00.00Z", "To" : "2016-06-27T15:20:00.00Z", "ArchiveTaskId" : "084b56a5-bd49-4327-82db-9bc911f7ff96", "ErrorMessage" : null, "State" : "Created"}The folder with the corresponding name (084b56a5-bd49-4327-82db-9bc911f7ff96) and mp4 file inside it is created in the export folder (by default C:\Users\User\Documents\Intellect\export).
Getting export status
Example:
GET http://192.168.15.182/getarchivetaskstatus?archivetaskid=104b38d4-07d7-4d2f-84da-49b3e255d2bf
Response:
{ "Percents" : 100, "Url" : "http://192.168.15.182/download?file=104b38d4-07d7-4d2f-84da-49b3e255d2bf", "CameraId" : "1", "From" : "2016-06-27T15:10:00.000+03:00", "To" : "2016-06-27T15:11:00.000+03:00", "ArchiveTaskId" : "104b38d4-07d7-4d2f-84da-49b3e255d2bf", "ErrorMessage" : "null", "State" : "ReadyForDownload"}The required mp4 file can be downloaded using the link in the URL bar.
Deleting archive
Example:
DELETE http://192.168.15.182/removearchive?archivetaskid=084b56a5-bd49-4327-82db-9bc911f7ff96
Response:
{ "ArchiveTaskId" : "084b56a5-bd49-4327-82db-9bc911f7ff96", "ErrorMessage" : null, "Success" : true}The corresponding folder with mp4 file will be deleted from the export folder.