---
title: "Batch create locations"
method: POST
path: "/api/v3/projects/{project_id}/locations/batch_create"
tags: ["locations"]
---

# Batch create locations

`POST /api/v3/projects/{project_id}/locations/batch_create`

## Request

- Base URL: `https://client-api.us.fieldwire.com`
- URL: `https://client-api.us.fieldwire.com/api/v3/projects/{project_id}/locations/batch_create`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, uuid, required

## Headers

- `Fieldwire-Version` string, date, required

## Request body

- LocationBatchCreateInput: Schema for batch location create.
  - `list_of_full_paths` array[], required: List of full paths of the locations to be created on the project.
    - string[]: Array of strings representing the full path of the location to be created.

## Response `201`

Successful batch create response

- object[]: Locations that were created from the batch_create call.
  - `id` string, uuid: ID of the entity
  - `creator_user_id` integer: ID of the user who created this entity
  - `last_editor_user_id` integer: ID of the user who most recently edited this entity
  - `location_id` string, uuid, nullable: ID of the location this lives under (used for nesting locations). Cannot be changed after creation.
  - `project_id` string, uuid: ID of the project this entity belongs to
  - `name` string: Name of the location. Must be unique between locations under the same parent.
  - `created_at` string, date-time: Time when the server created the entity
  - `deleted_at` string, date-time, nullable: Time the server deleted the entity
  - `device_created_at` string, date-time: Time when the device created the entity
  - `device_updated_at` string, date-time: Time when the device last updated the entity
  - `resolved_conflict` boolean: Specifies if PUT/PATCH request was rejected - do not store this field!
  - `updated_at` string, date-time: Time when the server last updated the entity

## Other responses

- `422`: Too many locations batch create response

---

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