The method and parameters
|
PATCH /api/v1/billing/tree |
When updating a tree element, you can rename it or change its key.
Changing the key of a tree element doesn’t remove any dependencies established using the old key.
A tree element can be updated by either its id or its external_id.
{
"name": "new name",
"type": "cameras|intercoms|camera_intercom",
"new_type": "camera_intercom",
"id": null,
"external_id": "current_value",
"new_external_id": "new_value",
"log_extra": {
"some": "information"
}
}
string name – the name of the tree element.
int id – the ID of the tree element to update.
string|int external_id – the key for tree element.
string type – the type of the tree in which the update occurs.
string new_type – the new tree type.
string|int new_external_id – a new unique private key for the tree element.
string|array log_extra – additional information received from an external system.
|
200 |
|
A successful response JSON
|
|
422 |
|
Returns a JSON object with an error. For details, see General information > Validation. JSON
|