The method and parameters
|
POST /api/v1/cameras/archive |
The expired_at field indicates the expiration time of the link token.
As part of this request, you can include the user's integration token. If the camera is accessible to the user, a URL to the archived footage will be generated.
{
"cameras": [
{
"uuid": "uuid",
"stream_type": "high",
"date": "2000-01-01T00:00:00Z"
}
],
"source": "hls"
}
array cameras required – an array of UUIDs of cameras for which you are retrieving links. Each camera object has the following properties:
-
uuid – the UUID of the camera for which the archive link is to be generated. This field is required.
-
stream_type – a type of the video stream. If omitted or set to camera, the link will be generated for this camera. If the stream type is specified, the link will be generated for that particular stream type.
-
from – the start date and time of the archive segment
-
to – the end date and time of the archive segment
int ttl – a link lifetime in seconds.
|
200 |
|
A successful response with all parameters JSON
|
|
401 |
|
When an authorization token is passed but is invalid |