Departments
Delete a department
Delete a department. Members must first be transferred via /api/departments/transfer/scan-bulk + /execute (with deleteSourceDepartmentId) - direct deletion will fail when the department still has members. Refused with 409 while any phone number or email account still shares access with the department (a grant to it): remove the department from their sharing first.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/departments/string"{ "message": "Department deleted"}