Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Is required

Description

CameraIdYes

Camera ID

FromYesThe start time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS
ToNoThe end time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS (if not specified, the entire archive will be given up to the last record)

Request example:

POST http://127.0.0.1:80/createarchivetask

...

Code Block
languagexml
Content Type: application/json
Content:
{
 "CameraId": "1",
 "From": "2016-06-27T15:10:00.00Z",
 "To": "2016-06-27T15:20:00.00Z"
}

...

Response example:

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). 

Code Block
languagexml
{
    "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"
}

Response example:

Parameter

Description

CameraId

Camera ID

FromThe start time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS
ToThe end time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS
ArchiveTaskIdTask ID
ErrorMessageError messages
StateTask creation result

...