Update a tree element
|
PATCH /api/v1/billing/tree |
A tree element can be renamed or assigned a different key.
Changing an element's key does not remove relationships created using the old key.
A tree element can be updated by id or external_id.
JSON
{
"name": "new name",
"type": "cameras",
"id": null,
"external_id": "current_value",
"new_external_id": "new_value",
"log_extra": {
"some": "information"
}
}
Method parameters
string name, Tree element name
int id, ID of the tree element to update
string|int external_id, Tree element key
string type, Tree type, always `cameras`. The legacy value `intercoms` is accepted for backward compatibility
string|int new_external_id, New unique custom key for the tree element
string|array log_extra, Additional information received from an external system
|
200 |
|
Successful response JSON
|
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|