Delete department

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
Query Params
integer

Id of the department to move this department's jobs and users onto. Omit to leave them without this department.

string
length between 1 and 255

external_id of the department to move this department's jobs and users onto. Use instead of replacement_department_id; sending both returns 422.

Responses

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict: another change to the organization's departments is still being processed

422

Unprocessable Content: the replacement department is invalid, or the department is used by permission rules

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json