Updating a tree element
When updating a tree element, you can rename it or change the key.
When the key is changed, the tree element does not lose dependencies that were created through the old key.
The tree element can be updated by id or by external_id.
PATCH/api/v1/billing/treeHeaders | |||||||||
Accept | application/json |
Body | |||||||||
json |
JSON
| ||||||||
namerequired | string | Tree element name | |||||||
idrequired | int | Tree element ID to be updated | |||||||
external_idrequired | string|int | Key for tree element | |||||||
typerequired | string | The type of tree within which the update occurs | |||||||
new_external_idrequired | string|int | New unique own key for tree element |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
422 | Returns a JSON object with an error. Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|