It's possible to add new offices and departments using Greenhouse Recruiting's Harvest API. However, offices and departments are organization-level fields that can be tied to permissions, approval chains, jobs, custom fields, template jobs, and more. Due to these dependencies, there are some limitations on how offices and departments can be updated through Harvest API.
For more information on these dependencies, check out: Office and department-dependent workflows.
Sync offices and departments from an external system
You can add new offices and departments as a parent or child office or department with the following API endpoints:
If you're adding a child office or department, you'll need to specify the Greenhouse Recruiting parent office or department ID in the "parent_id" field. You can use the
external_id querystring parameter on GET: List offices and GET: List departments to retrieve the Greenhouse Recruiting office or department ID that's required for your POST requests.
Update existing office names, locations, or external IDs, and existing department names or external IDs via the following endpoints:
You'll need to use the Greenhouse Recruiting office or department ID in the HTTP request in order to specify the appropriate office / department to update.
The following actions are not possible using Harvest API:
- Removing offices or departments – We do not recommend this in general for the purpose of preserving historical job data.
- Updating office or department hierarchy – For example, you can't make a subordinate office a parent office by using Harvest API.