---
title: "Import translations"
method: POST
path: "/files-api/v2/projects/{projectId}/locales/{localeId}/file/import"
tags: ["Files"]
---

# Import translations

`POST /files-api/v2/projects/{projectId}/locales/{localeId}/file/import`

## Path parameters

- `projectId` string, required
- `localeId` string, required

## Response `200`

OK

- FilesAPITranslationImportSuccessResponse
  - `response` object, required
    - `code` 'SUCCESS', required — Indicates whether the response was successful or what error has occured.
    - `data` object
      - `stringCount` integer, required — Strings imported
      - `translationImportErrors` FilesApiTranslationImportErrorItem[], required
        - `fileUri` string, required — A unique identifier for the uploaded file
        - `importKey` string, required — Key for an imported string affected by the error
        - `messages` string[], required — Information about an import error
        - `stringHashcode` string, required — The hashcode of a string affected by the error
      - `wordCount` integer, required — Words imported.

## Other responses

- `400` — Provided request parameters are invalid.
- `401` — Provided credentials are not valid.
- `429` — Too many simultaneous API requests.
- `500` — Unexpected error

---

[API](https://skmtc.dev/smartling/apis/smartling-rest-api-reference.md) · [All operations](https://skmtc.dev/smartling/apis/smartling-rest-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smartling/smartling-rest-api-reference/revisions/2a73d11e9b98/schema)
