Skip to main content
Skip table of contents

Deleting a tree element

You can delete a tree element only if it has no child elements and no leaf objects in itself.

Tree element can be removed by id or external_id.

DELETE/api/v1/billing/tree

Headers

Accept

application/json

Body

json

JSON
{
    "id": 16,
    "external_id": "current_value",
    "type": "cameras|intercoms"
}

idrequired

int

The ID of the tree element to be removed

external_idrequired

string|int

Key for tree element

typerequired

string

The type of tree within which the deletion occurs

Response

204

Successful response

Example

JSON
curl -k --location --request DELETE 'https://vms.local/api/v1/billing/tree' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json \
--data-raw '{
    "id": 16,
    "external_id": "current_value",
    "type": "cameras|intercoms"
}'
JavaScript errors detected

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

If this problem persists, please contact our support.