---
title: "Create office"
method: POST
path: "/v3/offices"
tags: ["Offices"]
---

# Create office

`POST /v3/offices`

## Request

- Base URL: `https://harvest.greenhouse.io`
- URL: `https://harvest.greenhouse.io/v3/offices`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://auth.greenhouse.io/authorize`
    - Client credentials
    - Token URL: `https://auth.greenhouse.io/token` scopes: `harvest:offices:create`
  - HTTP bearer

Create a new office for the organization. Provide a `name` and, optionally, a `location`, an `external_id`, a `primary_in_house_contact_user_id`, and a parent reference (either `parent_id` or `external_parent_id`, not both). Tiered offices require the `tiered_offices_and_departments` product flag; `external_id` requires the `org_structure_external_id` product flag.

## Request body

- object
  - `name` string, required: Display name of the new office. Must be unique among active offices in the organization.
  - `parent_id` integer: Id of the office to use as the parent in the office hierarchy. Omit (or set with `external_parent_id` instead) when creating a top-level office. Mutually exclusive with `external_parent_id`.
  - `external_id` string: Customer- or HRIS-supplied identifier for cross-system reconciliation. Requires the `org_structure_external_id` product flag.
  - `location` string: Free-form physical location string for the office (e.g. `New York, NY, USA`). Optional; omit for remote-only offices.
  - `primary_in_house_contact_user_id` integer: Id of the Greenhouse user to set as the office's primary internal contact. References a `/v3/users` row.
  - `external_parent_id` string: `external_id` of the office to use as the parent, for partners that key the hierarchy by external id rather than Greenhouse id. Mutually exclusive with `parent_id`.

## Response `201`

Successful

- object
  - `id` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string: Display name of the office (e.g. `San Francisco`, `Remote (US)`). Unique among active offices in the same organization.
  - `parent_id` integer, nullable: Id of the parent office when offices are organized hierarchically. `null` for top-level offices. References another `/v3/offices` row in the same organization.
  - `external_id` string, nullable: Stable identifier supplied by the customer or HRIS for cross-system reconciliation. `null` when no external id has been set. Available when the `org_structure_external_id` product flag is enabled.
  - `external_parent_id` string, nullable: `external_id` of the parent office, for partners that key the office hierarchy by external id rather than Greenhouse id. Mirrors the `external_parent_id` accepted on create and update. `null` for top-level offices and when the parent has no external id set.
  - `location` string, nullable: Free-form physical location string for the office (e.g. `New York, NY, USA`). `null` for offices that have no location set, including most remote offices.
  - `primary_in_house_contact_user_id` integer, nullable: Id of the Greenhouse user designated as the office's primary internal contact, typically the local recruiting lead. References a `/v3/users` row. `null` when no contact has been assigned.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Content

---

[API](https://skmtc.dev/greenhouse/apis/harvest-api.md) - [All operations](https://skmtc.dev/greenhouse/apis/harvest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/greenhouse/apis/harvest-api/revisions/822822e3f771?raw)
