Video regeneration
Video regeneration
The video recording (archive) will be created immediately and returned in the response. Subsequently, the partial archive will be downloaded asynchronously.
The download link for the archive will be sent via Websockets push with the type archive_generated
POST /api/admin/v1/downloads/{download}/repeat |
Method parameters
int
download, unique identifier of the video recording
200 |
Successful response
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
402 |
License error |
422 |
Returns a JSON object with an error. Validation
JSON
|
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/downloads/{download}/repeat' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"download": 0
}'
PHP
PHP
$data = array (
'download' => 0,
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/downloads/{download}/repeat', false, $context);