Breadcrumbs

Dеlete а camera

The method and parameters

DELETE  /api/v1/billing/cameras

When a camera is deleted, any associated DHCP reservation is also removed, and the IP address lease assigned to the camera is released.

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

string id – the ID of a camera.


string external_id – the external ID of a camera.


string mac – the MAC address of a camera.


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. For details, see General information/External system validation.

JSON
{
    "message": "No error message here",
    "errors": {
        "any_key": [
            "Error details"
        ]
    }
}
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);