Skip to main content
Skip table of contents

Dеlete a camera

Removing a camera

When deleting a camera, if it has a reservation in DHCP, then it is deleted and the lease for the camera’s IP address is also deleted

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

DELETE /api/v1/billing/cameras

Parameters

string mac, Mac camera address


string|array log_extra, Additional information received from an external system

204 No Content

Successful response

422 Unprocessable Entity

Returns a JSON object with an error. VMS Billing/General information/External system validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
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.