Endpoints
List divisions
Query the hierarchy by tenant, name, parent, order, cost center, and timestamps.
Create a division
Create a root or child division with dry-run validation.
Get a division
Read one division by ID.
Update a division
Rename, reorder, reparent, or change the cost center.
Validation rules
- Parent and child must belong to the same tenant.
- A parent change cannot create a hierarchy cycle.
- A division name must be unique among siblings.
parentId: nullrepresents a root division.- Nullable
costCentercan be cleared withnull. - The public v1 contract does not expose division deletion.
Division management guide
Use safe create, reparenting, ordering, and conflict-resolution patterns.
