---
title: "Validate the next window of an import file"
method: POST
path: "/settings/data-transfer/imports/{id}/validate-chunk"
tags: ["Admin Settings: Data Transfer"]
---

# Validate the next window of an import file

`POST /settings/data-transfer/imports/{id}/validate-chunk`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/settings/data-transfer/imports/{id}/validate-chunk`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/settings/data-transfer/imports/:id/validate-chunk/post.ts> (a function with typed inputs; its response is checked against the schema)

Validates the next window of rows of the uploaded file and returns progress, resuming where the previous call left off. Call it until `done` is true; the last call carries `isValid` and the finalised `import`. An importer without windowed validation validates the whole file in one call.

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

Validation progress.

## Other responses

- `400`: The file could not be validated.
- `401`: Missing or invalid admin token.
- `403`: Admin role lacks settings.data_transfer.imports.import.
- `404`: Import not found.
- `422`: Validation Error

## Changes

- **2026-10-28** `3198f11be70f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/settings/data-transfer/imports/:id/validate-chunk/post.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
