---
title: "Create location"
method: POST
path: "/api/locations"
tags: ["Location"]
---

# Create location

`POST /api/locations`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/locations`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/locations/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new location and optionally attaches it to an entity

## Request body

- LocationStoreRequest
  - `is_us_hq` boolean: Rejected when the location is being attached to an individual property.
  - `street` string
  - `city_id` integer
  - `zip` string
  - `phone` string
  - `entity_type` string
  - `entity_id` integer

## Response `200`

New Location.

- LocationResource
  - `id` integer
  - `is_us_hq` boolean, nullable: Omitted from the response when the owning property is an individual (athlete / influencer).
  - `street` string
  - `city_id` integer
  - `zip` string
  - `phone` string
  - `label` LocationLabelResource
    - `id` integer
    - `name` string
    - `slug` string

---

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