---
title: "Preview CSV import"
method: PUT
path: "/migration/csv/preview"
tags: ["migration"]
---

# Preview CSV import

`PUT /migration/csv/preview`

Generates a preview of the first 5 tasks that would be imported with the given configuration.

## Response `200`

Preview of tasks to import

- CsvPreviewResult
  - `tasks` CsvPreviewTask[]
    - `description` string
    - `done` boolean
    - `due_date` string
    - `end_date` string
    - `labels` string[]
    - `priority` integer
    - `project` string
    - `start_date` string
    - `title` string
  - `total_rows` integer

## Other responses

- `400` — Invalid CSV file or configuration
- `500` — Internal server error

---

[API](https://skmtc.net/go-vikunja/apis/vikunja-api.md) · [All operations](https://skmtc.net/go-vikunja/apis/vikunja-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/go-vikunja/vikunja-api/revisions/feb3f68bbdf1/schema)
