26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Delete camera by external system

Delete a camera

DELETE  /api/v1/billing/cameras

When a camera is deleted, its DHCP reservation, if any, and the lease for its IP address are also deleted.

A Bridge or Agent camera can't be deleted. The response is 422 with the key error

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

Method parameters

string id, Camera ID


string external_id, Camera external_id


string mac, Camera MAC address


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

204  No Content

Successful response

422  Unprocessable Entity

Returns a JSON error object.

For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request DELETE \
	--url 'https://your-domain/api/v1/billing/cameras' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "id": "string",
    "external_id": "string",
    "mac": "string",
    "log_extra": "string|array"
}'
PHP
PHP
$data = array (
  'id' => 'string',
  'external_id' => 'string',
  '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);