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

# Update office

`PUT /offices/{officeCode}`

## Path parameters

- `officeId` string, required

## Request body

- OfficeInput
  - `code` string, required
  - `country` string, required
  - `city` string, required
  - `address` string, required
  - `capacity` integer, required
  - `monthlyRental` number, required — Monetary value in EUR
  - `estate` object, required
    - `owner` 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
  - `estate` object, required
    - `owner` 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
- `500` — An internal server error occurred.
- `503` — The service is temporarily unavailable. Maybe there is maintenance?

## Changes

- **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`
- **2025-01-07** `659ddbe31a58` — 5 breaking, 3 warning, 5 info
  - added the new path request parameter `officeId`
  - added the new required request property `estate`
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `404`
  - …9 more

[Change 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/29074eeb2bb5/schema)
