---
title: "Update a city"
method: PUT
path: "/v1/cities/{idCity}"
tags: ["cities"]
---

# Update a city

`PUT /v1/cities/{idCity}`

## Path parameters

- `idCity` integer, required

## Request body

- HttpUpdateCityRequest
  - `code` string
  - `department_id` integer, required
  - `name` string, required

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/earnation/apis/earnation-api.md) · [All operations](https://skmtc.dev/earnation/apis/earnation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/earnation/earnation-api/revisions/1219d1bf2177/schema)
