Removing the bridge and all its cameras
Permission - bridges
DELETE /api/admin/v1/bridges/{bridge}
int bridge, Unique bridge identifier
int
204 No Content
No Content
Returns an empty response
401 Unauthorized
Unauthorized
Authorization token not sent or not valid
403 Forbidden
Forbidden
If the administrator or user (for whom the bridge is activated) does not have the necessary access rights
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/bridges/{bridge}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "bridge": 0 }'
$data = array ( 'bridge' => 0, ); $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/admin/v1/bridges/{bridge}', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.