---
title: "Queue the validation of an import"
method: POST
path: "/settings/data-transfer/imports/{id}/validate/queue"
tags: ["Admin Settings: Data Transfer"]
---

# Queue the validation of an import

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

## Request

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

Dispatches the validation as a background queue batch and returns the row `total`. Poll `GET .../validate/status` until `done`. A `total` of 0 means nothing was fanned out (an empty file or a bad header) and the import was validated straight away.

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

Validation dispatched.

## Other responses

- `400`: The validation could not be queued.
- `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/queue/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)
