---
title: "POST /locations/"
method: POST
path: "/locations/"
tags: ["locations"]
---

# POST /locations/

`POST /locations/`

## Request

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

## Request body

- LocationListParameters
  - `location_type` 'home' | 'office' | 'client' | 'hotel' | 'airport' | 'other' | 'city' | 'car_rent_agency' | 'rail' | 'rail_group', required
  - `visibility` 'public' | 'private' | 'hidden'
  - `main_approver_id` integer, nullable
  - `country` object
  - `country_name` unknown
  - `name` string, nullable
  - `address` string, nullable
  - `description` string, nullable
  - `location_data` LocationDataField, required (unresolved $ref)
  - `lat` number, required
  - `long` number, required
  - `main_approver` string, nullable
  - `main_contact_email` string, nullable
  - `main_contact_name` string, nullable
  - `main_contact_phone` string, nullable

## Response `200`

Request fulfilled, document follows

- DetailedLocationSchema
  - `id` integer
  - `address` string, nullable
  - `name` string, nullable
  - `location_type` 'home' | 'office' | 'client' | 'hotel' | 'airport' | 'other' | 'city' | 'car_rent_agency' | 'rail' | 'rail_group'
  - `lat` number, nullable
  - `long` number, nullable
  - `location_data` string, nullable
  - `visibility` 'public' | 'private' | 'hidden'
  - `created_dt` string, date-time
  - `country` object
  - `short_name` string
  - `main_approver_id` integer, nullable
  - `airport_name` string
  - `country_name` unknown
  - `description` string, nullable
  - `main_contact_phone` string, nullable
  - `main_contact_name` string, nullable
  - `main_contact_email` string, nullable
  - `main_approver` BaseUser (unresolved $ref)

## Other responses

- `403`: Request forbidden -- authorization will not help
- `409`: Request conflict
- `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)
