---
title: "Submit corrected files for an assisted import"
method: POST
path: "/assisted-imports/{id}/replacement"
tags: ["Imports"]
---

# Submit corrected files for an assisted import

`POST /assisted-imports/{id}/replacement`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/assisted-imports/{id}/replacement`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Creates one new ready request from a complete upload batch when the original request needs information. The replacement copies the original import details and preserves the original request and files. Repeating a successful submission returns the same replacement request.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `companyOrganizationId` string, uuid, required
  - `uploadBatchId` string, uuid, required

## Response `200`

Existing replacement request

## Other responses

- `201`: Replacement request created
- `409`: The original is not waiting for corrected files, the package is incomplete, or another request is active
- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
