---
title: "Update office"
method: PUT
path: "/offices/{officeCode}"
tags: ["Offices"]
---

# Update office

`PUT /offices/{officeCode}`

## Path parameters

- `officeCode` string, required

## Request body

- OfficeInput
  - `code` string, required
  - `country` string, required
  - `city` string, required
  - `address` string, required
  - `coordinates` Coordinates, required
    - `latitude` number, required
    - `longitude` number, required
  - `capacity` integer, required
  - `monthlyRental` number, required — Monetary value in EUR
  - `estateOwner` object, required
    - `name` string, required
    - `phone` string, required
    - `account` string, required
  - `amenities` OfficeAmenity[], required
    - `code` string, required — Unique code identifier of the amenity
    - `name` string, required — Display name of the amenity
  - `imgURL` string

## Response `200`

Office updated successfully

- Office
  - `code` string, required
  - `country` string, required
  - `city` string, required
  - `address` string, required
  - `capacity` integer, required
  - `monthlyRental` number, required — Monetary value in EUR
  - `estateOwner` object, required
    - `name` string, required
    - `phone` string, required
    - `account` string, required
  - `amenities` string[], required
  - `imgURL` string

## Other responses

- `400` — Invalid office input request body @see {@link OfficeInput}
- `404` — Office not found
- `409` — Office code already taken by another office
- `422` — Invalid office configuration (e.g. invalid country code, unknown amenity)
- `500` — An internal server error occurred.
- `503` — The service is temporarily unavailable. Maybe there is maintenance?

## Changes

> 28 revisions in range; 1 could not be searched.

- **2025-01-24** `542ef1d43cc7` — 3 breaking, 1 warning, 1 info
  - added the new required request property `coordinates`
  - added the new required request property `estateOwner`
  - removed the required property `estate` from the response with the `200` status
  - removed the request property `estate`
  - …1 more
- **2025-01-17** `4573748c6338` — 6 info
  - added the optional property `errorGUID` to the response with the `400` status
  - added the optional property `errorGUID` to the response with the `404` status
  - added the optional property `errorGUID` to the response with the `409` status
  - added the optional property `errorGUID` to the response with the `422` status
  - …2 more
- **2025-01-09** `a59b7402c514` — 5 breaking, 1 warning, 2 info
  - added the new path request parameter `officeCode`
  - the response property `code` became optional for the status `400`
  - the response property `code` became optional for the status `404`
  - the response property `code` became optional for the status `500`
  - …4 more
- **2025-01-09** `29074eeb2bb5` — 4 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`
  - added the non-success response with the status `500`
  - added the non-success response with the status `503`
- …earlier changes not shown

[Full history](https://skmtc.dev/ducin-public/apis/itcorpo-api/changes/offices/:officeCode/put.md)

---

[API](https://skmtc.dev/ducin-public/apis/itcorpo-api.md) · [All operations](https://skmtc.dev/ducin-public/apis/itcorpo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ducin-public/itcorpo-api/revisions/80675117301b/schema)
