Delete organization units
DELETE/v1/organization
Soft delete or deactivate organization units based on filter criteria.
Actions (organization_unit has no is_deleted column today; both actions are effectively soft-deactivations):
- delete: Sets
active = falseand writes'[DELETED]'intocustom_field_15as a sentinel so consumers can distinguish "deleted" from "deactivated". - deactivate: Sets
active = false.custom_field_15is left untouched.
Filter Parameters: Supports filtering by ID, code, organization type, and dates
Request
Responses
- 200
- 400
- 401
- 403
- 500
Delete/deactivate success
Bad request - invalid action or parameters
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Internal server error