POST
/
work-locations
/
public
/
api
/
imports
/
user-locations
Import user locations
curl --request POST \
  --url https://{host}/work-locations/public/api/imports/user-locations \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: multipart/form-data'
{
  "summaryId": "51564472-08cc-4410-94cc-a2b67f77f980"
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Content-Type
string
required

Multipart boundary MUST be set in the Content-Type header.

Query Parameters

create
boolean
required

Use false to simulate the import and true to create the User Locations. If you simulate you will be able to use analysis and if you create, you could use results.

overrideUserLocations
boolean
required

Use true to replace current User Locations with new one. Use false to create/simulate User Locations just for day without UserLocations.

Body

multipart/form-data · object

Content of the CSV file to import. Divided by the 'boundary' string set in the Content-Type HTTP header.

Example of a single file request body:

--myBoundary
Content-Disposition: form-data; name="office-import.csv"; filename="office-import.csv"
Content-Type: multipart/form-data

login;workLocationName;areaName;date;position;comment;isDeletion
jdupont;Paris;Service Client;2025/09/18;FullDay;;false
mlefevre;Nantes;B1;2025/09/19;SecondHalf;this is a comment;false
--myBoundary--

The body is of type object.

Response

200 - application/json

OK

summaryId
string<uuid>
Example:

"51564472-08cc-4410-94cc-a2b67f77f980"