---
title: "Reads reservations to migrate from CSV and returns the batch id"
method: POST
path: "/data/v0-nsfw/import/reservations-upload"
tags: ["Import"]
---

# Reads reservations to migrate from CSV and returns the batch id

`POST /data/v0-nsfw/import/reservations-upload`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/data/v0-nsfw/import/reservations-upload`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `reservations.import`

The reservations will be created by-passing availability checks and offer calculation as they have been accepted
already by the hotel. Still only reservations with arrival in the future are accepted.
The values in the CSV must be delimited by ';'.<br>You must have this scope: 'reservations.import'.

## Headers

- `Idempotency-Key` string

## Request body `multipart/form-data`

- object
  - `formFile` string, binary, required: The file to upload.

## Response `201`

Uploaded.

- MigrationBatchCreatedModel
  - `batchId` string, required

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-data-api-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-data-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-data-api-not-safe-for-work/revisions/d4b58f551d6f?raw)
