---
title: "Update City"
method: PATCH
path: "/api/cities/{city_id}"
tags: ["Cities"]
---

# Update City

`PATCH /api/cities/{city_id}`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/cities/{city_id}`
- Auth: none declared

Update city settings.

## Path parameters

- `city_id` integer, required

## Request body

- CityUpdate
  - `sync_enabled` boolean, nullable
  - `retention_months` integer, nullable

## Response `200`

Successful Response

- CityResponse
  - `id` integer, required
  - `name` string, required
  - `country` string, required
  - `country_name` string, required
  - `sync_enabled` boolean
  - `retention_months` integer
  - `last_sync` string, date-time, nullable
  - `reviews_count` integer
  - `has_geo_json` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
