Add source file
This operation adds a file with the to-be translated contents, to your translation project.
- You can only add 1 file per request.
- However, you can add several target languages to one file if needed.
Example:
projects/projectid/files?fileName=test.txt&sourceLanguage=en-GB&targetLanguages=it-IT,es-ES - You can also add a callback URL to receive a notification when the file is translated. See more: Webhooks guide.
- The maximum allowed size is 3Gb per file.
- Translation projects can support up to 400 files maximum.
- The file name is a mandatory field.
See all restrictions, formats and hints in the File management section.
| Path Parameters |
|---|
id int32 — REQUIREDID of the project where the file is going to be added. |
| Query Parameters |
|---|
filename string — REQUIREDYou must add a name to your source file together with the file extension. This is a mandatory field. |
sourceLanguage stringBCP47 code of the original Language of the file. Example:en-GB (English, United Kingdom). |
targetLanguages stringBCP47 codes separated by commas for the languages your file is to be translated. Example:es-ES,it-IT,dk. |
| Header Parameters |
|---|
callbackUrl stringAn optional URL where you want to receive a notification when the file is translated. |
X-preview stringAn optional URL to a publicly accessible page with the file preview. Caution
|
| Request Body |
|---|
| string |
| Responses | ||||
|---|---|---|---|---|
201File added to the project
|