Skip to main content
Skip table of contents

Удaление камеры. Billing API

Удаление камеры

При удалении камеры, если у неё есть резервация в DHCP, то она удаляется и так же удаляется lease для ip адреса камеры

JSON
{
    "mac": "11:11:11:11:11:11",
    "log_extra": {
        "some": "information"
    }
}

DELETE /api/v1/billing/cameras

Параметры метода

string mac, Mac адрес камеры


string|array log_extra, Дополнительная информация получаемая из внешней системы

204 No Content

Успешный ответ

422 Unprocessable Entity

Возвращает JSON объект с ошибкой. VMS Billing/Общая информация/Валидация внешней системы

JSON
{
    "message": "Тут не будет информативного сообщения",
    "errors": {
        "any_key": [
            "Тут будет описана причина ошибки"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/cameras' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "mac": "string",
    "log_extra": "string|array"
}'
PHP
PHP
$data = array (
  'mac' => 'string',
  'log_extra' => 'string|array',
);
$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/v1/billing/cameras', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.