---
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

## Changes

- **2026-04-07** `806d3c1b98ae` — 1 info
  - endpoint added
- **2025-07-28** `d7c1f946dc48` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/go-vikunja/apis/vikunja-api/changes/migration/csv/preview/put.md)

---

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