---
title: "Import user locations"
method: POST
path: "/work-locations/public/api/imports/user-locations"
tags: ["Imports"]
---

# Import user locations

`POST /work-locations/public/api/imports/user-locations`

## Request

- Base URL: `https://example.ilucca.net`
- URL: `https://example.ilucca.net/work-locations/public/api/imports/user-locations`
- Auth: none required
- TypeScript: <https://skmtc.dev/luccasoftware/apis/lucca-expenses/docs/work-locations/public/api/imports/user-locations/post.ts> (a function with typed inputs; its response is checked against the schema)

Create user locations in batch from a CSV file.

**Please note that once launched, imports cannot be undone.**

You may test out your CSV file first, through setting the `create` query parameter to `false`. [Refer to the guide](../guides/import-and-create-user-locations) for further explanations.

## Query parameters

- `create` boolean, required
- `overrideUserLocations` boolean, required

## Headers

- `Content-Type` string, required

## Request body `multipart/form-data`

- object

---

[API](https://skmtc.dev/luccasoftware/apis/lucca-expenses.md) - [All operations](https://skmtc.dev/luccasoftware/apis/lucca-expenses/llms.txt) - [OpenAPI document](https://skmtc.dev/luccasoftware/apis/lucca-expenses/revisions/110f9897756c?raw)
