---
title: "Upload file"
method: POST
path: "/files-api/v2/projects/{projectId}/file"
tags: ["Files"]
---

# Upload file

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

This uploads original source content to Smartling.

The curl example provided will upload your Java properties file directly
into the Smartling project identified by the `projectId`. Smartling will
ingest this file, parse out the keys and text as strings for
translation. At this point, content is ready for translation.

## Path parameters

- `projectId` string, uid, required

## Response `200`

OK

- FilesAPIUploadSuccessResponse
  - `response` object, required
    - `code` 'SUCCESS', required — Indicates whether the response was successful or what error has occured.
    - `data` object
      - `overWritten` boolean, required — Indicates whether the uploaded file has overwritten an existing file.
      - `stringCount` integer, required — The number of strings in the uploaded file
      - `wordCount` integer, required — The number of words in the uploaded file

## Other responses

- `202` — ACCEPTED
- `400` — Provided request parameters are invalid.
- `401` — Provided credentials are not valid.
- `423` — The requested file is currently being processed by another operation. The file will be unlocked after the operation completes.
- `429` — Too many simultaneous API requests.
- `500` — Unexpected error

---

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