---
title: "Create Location"
method: POST
path: "/api/locations"
---

# Create Location

`POST /api/locations`

## Request

- Base URL: `https://api.liposta.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.liposta.com/api/locations`
- Auth: none declared

## Request body

- LocationCreate
  - `loc_id` string, required
  - `loc_name` string, required
  - `max_capacity` integer
  - `color` string
  - `type` string
  - `description` string, nullable
  - `accepted_pages` string[], nullable
  - `accepted_categories` string[], nullable
  - `accepted_attrs` string[], nullable

## Response `200`

Successful Response

- LocationOut
  - `id` string, required
  - `loc_name` string, required
  - `max_capacity` integer, required
  - `current_capacity` integer, required
  - `type` string, required
  - `color` string
  - `description` string, nullable
  - `accepted_pages` string[], nullable
  - `accepted_categories` string[], nullable
  - `accepted_attrs` string[], nullable

## Other responses

- `422`: Validation Error

---

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