Delete Place
DELETE/api/places/deleteplace/:id
Tier: Public — stable, supported for third-party integration.
Soft-deletes a place, re-parenting its direct children and detaching its tag.
Only the deleted place's direct children (rows whose ParentPlaceId equals the deleted place's own Id) are re-pointed to the deleted place's parent — deeper descendants keep their existing (unchanged) parents. The deleted place's own bowers are zeroed (0/0). This delete does not trigger a tenant-wide nested-set rebuild, so surviving places keep their existing bowers with a gap where the deleted place was; the gap is closed by the next add or move. The tenant's single root place cannot be deleted.
Request
Responses
- 200
- 400
- 401
- 403
true on success.
Unknown id (NotFound/"place"); the place still has items, is referenced by a portal rule, has a pending (non-Completed/Cancelled) order, or has a pending service record (IllegalDeleteAttempt, field naming the blocker); the place is the tenant root (InvalidOperation, field "Tenant root Place"); or the underlying bulk re-parent/delete failed to affect any rows (OperationFailed). Deleting the root while it also has items returns both of the first two errors in one array.
Caller is not authenticated.
Caller does not have Delete permission on the Place module.