---
title: "POST /cars/city"
method: POST
path: "/cars/city"
tags: ["cars"]
---

# POST /cars/city

`POST /cars/city`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/cars/city`
- Auth: API key in header `Authorization`

## Request body

- CityCreateParameters
  - `location_type` 'home' | 'office' | 'client' | 'hotel' | 'airport' | 'other' | 'city' | 'car_rent_agency' | 'rail' | 'rail_group'
  - `code` string, nullable
  - `label` string, nullable
  - `longitude` number, nullable
  - `latitude` number, nullable
  - `country_name` string, nullable
  - `country_iso` string, nullable
  - `city_name` string, nullable
  - `state` string, nullable

## Response `200`

Request fulfilled, document follows

- CityResponseSchema
  - `id` integer
  - `external_id` string
  - `name` string
  - `iata_code` string, nullable
  - `latitude` number
  - `longitude` number
  - `country_id` integer
  - `country` Country (unresolved $ref)

## Other responses

- `422`: Success

---

[API](https://skmtc.dev/getgoing/apis/getgoing-api.md) - [All operations](https://skmtc.dev/getgoing/apis/getgoing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getgoing/apis/getgoing-api/revisions/7546f102cf69?raw)
