Skip to main content
Skip table of contents

Deleting a camera. VMS Billing API

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

DELETE/api/v1/billing/cameras

Headers

Accept

application/json

Body

json

JSON
{
    "mac": "11:11:11:11:11:11"
}

macrequired

string

Camera MAC address

Response

204

Successful response

422

Returns a JSON object with an error. Validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}

Example

JSON
curl -k --location --request DELETE 'https://vms.local/api/v1/billing/cameras' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json \
--data-raw '{
    "mac": "11:11:11:11:11:11"
}'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.