---
title: "Gets a batch by id"
method: GET
path: "/data/v0-nsfw/import/batch/{id}"
tags: ["Import"]
---

# Gets a batch by id

`GET /data/v0-nsfw/import/batch/{id}`

<br>You must have this scope: 'reservations.import'.

## Path parameters

- `id` string, required

## Response `200`

Success.

- MigrationBatchModel
  - `id` string, required
  - `type` 'ReservationImport', required
  - `status` 'Uploaded' | 'Running' | 'Successful' | 'Failure', required
  - `created` string, date-time, required — <br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
  - `updated` string, date-time, required — <br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
  - `items` MigrationItemModel[], required
    - `status` 'Uploaded' | 'Successful' | 'SuccessfulWithWarning' | 'Failure', required
    - `message` string, nullable
    - `created` string, date-time, required — <br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
    - `updated` string, date-time, required — <br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
    - `data` unknown, 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/71d100182642?raw)
