Delete a department. Child departments move up to the deleted department's parent. Pass replacement_department_id or external_replacement_department_id to move the department's jobs and users onto another department, as the Greenhouse UI does; without one, they are left without this department. The replacement can be any other department in the organization, including a child of the deleted one. Deleting sends the Department deleted webhook and is recorded in the change log. When the department or its replacement has more than 1,000 jobs, the deletion is queued and the endpoint returns 202. The requesting user must be a Site Admin.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Unauthorized
403Forbidden
404Not Found
409Conflict: another change to the organization's departments is still being processed
422Unprocessable Content: the replacement department is invalid, or the department is used by permission rules