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

# Update a specific city

`PUT /cities/{cityId}`

## Path parameters

- `cityId` number, required

## Headers

- `Authorization` string, required

## Response `204`

OK, city was updated

## Other responses

- `400` — Name missing, city not updated
- `401` — No token provided
- `404` — City not found

---

[API](https://skmtc.dev/packtpublishing/apis/world-data-api.md) · [All operations](https://skmtc.dev/packtpublishing/apis/world-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/packtpublishing/world-data-api/revisions/9f0bf3e19907/schema)
