entities
Ledger business entities
List entities
List ledger entities the caller may read. Optional `orgId` filters to that org among readable rows.
Create entity
Create an entity (id optional). Requires `entity`/`create` on the target `orgId` (org-level grant so the first entity in an org is allowed).
Get entity
Get one entity by id (requires `entity`/`read` on that entity).
Replace entity
Replace an entity. Requires `entity`/`update` on the path id. Changing `orgId` additionally requires `entity`/`create` on the new organization.
Update entity
Partial update. Requires `entity`/`update` on the path id; changing organization requires `entity`/`create` on the new org.
Delete entity
Delete an entity (requires `entity`/`delete`). Fails with 409 if dependent rows still reference it.