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.
JSON
{
"name": "new name",
"type": "cameras|intercoms",
"id": null,
"external_id": "current_value",
"new_external_id": "new_value",
"log_extra": {
"some": "information"
}
}
string name, Name of the tree element
int id, ID of the tree element to update
string|int external_id, Key for tree element
string type, Type of tree within which the update occurs
string|int new_external_id, New unique private key for the tree element
string|array log_extra, Additional information received from an external system
|
200 |
|
Successful response JSON
|
|
422 |
|
Returns a JSON object with an error. For details, see General information > Validation. JSON
|