---
title: "Create a new office."
method: POST
path: "/offices"
tags: ["Offices"]
---

# Create a new office.

`POST /offices`

Creates a new office.<br><br>The required fields are *name*, *companyId*, *calendarId*.<br>Optional fields are *street*, *postalCode*, *city* and *country*. <br> The *country* field has to be a valid ISO country code.

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string — The new name of the office to create. Required field.
  - `companyId` string — The company id of the office to create. Required field.
  - `calendarId` string — The calendar id of the office to create. Required field.
  - `country` string — The country of the office to create in ISO code.
  - `postalCode` string — The postal code of the office to create.
  - `city` string — The city of the office to create.
  - `street` string — The street of the office to create.

## Response `201`

CREATED

- object
  - `_id` string — The Kenjo id of the new office.
  - `name` string — The new name of the office to create.
  - `companyId` string — The company id of the office to create.
  - `calendarId` string — The calendar id of the office to create.
  - `country` string — The country of the office to create.
  - `postalCode` string — The postalcode of the office to create.
  - `city` string — The city of the office to create.
  - `street` string — The street of the office to create.

## Other responses

- `400` — BAD REQUEST. This is a wrong request in the client side due to invalid body or params.
- `401` — UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

---

[API](https://skmtc.net/kenjo/apis/kenjo-api.md) · [All operations](https://skmtc.net/kenjo/apis/kenjo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kenjo/kenjo-api/revisions/58772b78268e/schema)
