---
title: "Locations create."
method: POST
path: "/rest/api/warehouse/location/"
tags: ["Warehouse"]
---

# Locations create.

`POST /rest/api/warehouse/location/`

## Request body

- Location2[]
  - `id` integer, nullable, required
  - `name` string, nullable
  - `code` string, nullable

## Response `200`

No locations was created

- LocationsNotCreateResponse
  - `locations` integer[]

## Other responses

- `201` — Create locations correctly
- `400` — Invalid payload
- `413` — Too many Location objects submitted (max 128)
- `422` — Validation error

---

[API](https://skmtc.dev/apilo/apis/apilo-rest-api.md) · [All operations](https://skmtc.dev/apilo/apis/apilo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apilo/apilo-rest-api/revisions/a0f9dcdba6cc/schema)
