---
title: "Create new location"
method: POST
path: "/locations"
tags: ["Locations"]
---

# Create new location

`POST /locations`

## Query parameters

- `skipWebhook` boolean

## Headers

- `x-organization-id` integer

## Request body

- object
  - `name` string, required
  - `description` string, nullable
  - `address` string, nullable — Postal address of the location
  - `barcode` string, nullable — String encoded barcode
  - `parentId` integer, nullable — ID of the parent location
  - `extraFields` object — Custom Fields on the entity. The object keys are the exact Custom Field labels, including spaces or special characters. (ie: "Department")
  - `vendorIds` number[] — Vendor IDs
  - `externalId` string, nullable — External ID for this location, unique per organization.

## Response `200`

Successfully created location

- object
  - `id` integer, required — Global ID of the location

## Other responses

- `400` — OrganizationId was not provided
- `401` — Invalid token
- `409` — Conflict with existing location

---

[API](https://skmtc.net/getmaintainx/apis/maintainx-api.md) · [All operations](https://skmtc.net/getmaintainx/apis/maintainx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getmaintainx/maintainx-api/revisions/ef9153fcac7c/schema)
