Skip to main content
Skip table of contents

Delete a camera with an Agent

The method and parameters

The method deletes a camera with the Agent and all its streams.

A required permission level is camera-agents.

DELETE /api/admin/v1/camera-agents/{cameraAgent}

int cameraAgent – a unique camera identifier.

401 Unauthorized

Токен авторизации не передан или не валидный

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/camera-agents/{cameraAgent}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "cameraAgent": 0
}'
PHP
PHP
$data = array (
  'cameraAgent' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'DELETE',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/camera-agents/{cameraAgent}', false, $context);

Responses

A detailed list of response codes is in the General description API documentation section.

  • A successful response:

204 No Content

Returns an empty response.

  • Error responses:

401 Unauthorized

The authorization token is invalid or isn’t submitted.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.