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.

502 Bad Gateway

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

Invalid License

To continue using Just Add+ Embed Markdown, Diagrams, & Code in Confluence Git , a valid license is required.

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"
}'