---
title: "Import Target File Version"
method: POST
path: "/projects/{projectId}/target-files/{targetFileId}/versions/imports"
tags: ["Target File"]
---

# Import Target File Version

`POST /projects/{projectId}/target-files/{targetFileId}/versions/imports`

Generates an asynchronous import operation. Use [Poll Target File Version Import endpoint](#/operations/PollTargetFileVersionImport) to poll until the import is completed. Only `sdlxliff` files can be imported.

Import should be used when a file is downloaded as an `sdlxliff`, processed and then, replaced. 
The import operation triggers internally the update of the [BCM](../../BCM/BCM.NET_client_API.html) file associated with the imported file. It should mostly be used for offline work.

Consider the [file and project size limit](https://docs.rws.com/791595/815967/trados-enterprise---accelerate/file-and-project-size-limit) when uploading files.

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Response `200`

- FileVersionImport — Represents the result of an asynchronous operation, including status and potential error information.
  - `id` string, required — Unique identifier for the asynchronous operation.
  - `status` 'created' | 'inProgress' | 'completed' | 'failed', required — The status of the asynchronous operation.
  - `errorMessage` string — When the status is 'failed', it contains the error message explaining what went wrong.
  - `fileVersionId` string

## Other responses

- `400` — Error code “invalid” in case of: * Empty or missing file in request * Not valid multipart request * File parameter contains other extension than the one expected by specification.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to execute operation.
- `404` — Error codes: * "notFound": - the specified project or target file was not found.

---

[API](https://skmtc.dev/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.dev/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/revisions/d42dac7c28a3/schema)
