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
{ "mac": "11:11:11:11:11:11", "log_extra": { "some": "information" } }
DELETE /api/v1/billing/cameras
string mac, Mac camera address
string
string|array log_extra, Additional information received from an external system
string|array
204 No Content
No Content
Successful response
422 Unprocessable Entity
Unprocessable Entity
Returns a JSON object with an error. VMS Billing/General information/External system validation
{ "message": "There will be no informative message here", "errors": { "any_key": [ "The cause of the error will be described here" ] } }
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" }'
$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);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.