v50

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-031984301.2 MB
Source File

Add Source File

Adds a source file to the project. Files can be uploaded before starting a project or after the project has started. When adding a translatable file after the project started, a new start project request should be performed.

Consider the file and project size limit when uploading files.

Note: The maximum character size of the sum between the name and the path fields must not exceed 255. Otherwise the request cannot be validated.

Note: Zip files will be added as reference files. If you want to upload zip files, please use the Upload Zip File endpoint.

post/projects/{projectId}/source-files

Headers

Authorizationstring required

The bearer access token provided by Auth0.

X-LC-Tenantstring required

The identifier of the account where the request is executed.

Response

idstring required
namestring
<div style="display:inline; float:right; color:#008080; margin-top:-23px; font-size:11px">default</div><div style="display: inline;">The file name.</div>
role'translatable' | 'reference' | 'localizable' | 'unknown' nullable
pathstring[]
totalWordsinteger

Word count in the source file. </br> Available only for translatable source files, and only after the workflow task with Task Type convert (File Format Conversion) was executed on the source file. </br> Available only on the List Source Files endpoint.