---
title: "Проверить импорт перед переносом"
method: POST
path: "/api/v1/crm/imports/{id}/preview"
tags: ["CRM import"]
---

# Проверить импорт перед переносом

`POST /api/v1/crm/imports/{id}/preview`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/crm/imports/{id}/preview`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://erp.akeda.ru/oauth2/authorize`
    - Token URL: `https://erp.akeda.ru/oauth2/token` scopes: `akeda:delegate`

Ищет дубли: единственное сильное совпадение связывается само, спорные уходят в очередь решений. Возвращает токен для переноса.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Request body

- CRMImportRevisionInput
  - `revision` integer, required

## Response `200`

Счётчики и токен предпросмотра

- CRMImportPreview
  - `token` string, required
  - `revision` integer, required
  - `total` integer, required
  - `create` integer, required
  - `link` integer, required
  - `existing` integer, required
  - `skip` integer, required
  - `conflicts` integer, required
  - `by_kind` object, required
  - `tasks_create` integer: Новые задачи в рабочих списках
  - `tasks_archive_create` integer: Новые задачи в архиве
  - `tasks_archive_skip` integer: Пропускаемые задачи из архивных проектов

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `404`: Запись не найдена или не видима текущему пользователю
- `409`: Конфликт версии, идемпотентности или бизнес-состояния

## Changes

- **2026-12-04** `f0d7ee594cec`: 3 info
  - added the optional property `tasks_archive_create` to the response with the `200` status
  - added the optional property `tasks_archive_skip` to the response with the `200` status
  - added the optional property `tasks_create` to the response with the `200` status
- **2026-10-27** `4323d2165568`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/crm/imports/:id/preview/post.md)

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) - [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c?raw)
