Translations

Build Project File Translation

Required scopes: project.source.file (Read only).

post/projects/{projectId}/translations/builds/files/{fileId}

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

fileIdinteger required

File Identifier. Get via List Files

Headers

If-None-Matchstring

Add Etag identifier to the If-None-Match request header to see whether any changes were applied to the file. In case the file was changed it would be built. If not you'll receive a 304 (Not Modified) status code.

Request body

targetLanguageIdstring required

Target Language Identifier. Get via Project Target Languages

exportAsXliffboolean

Use Export Project Translation instead.

  • Defines whether to export file in XLIFF format
skipUntranslatedStringsboolean

Defines whether to export only translated strings

Note: true value can't be used with skipUntranslatedFiles=true in same request

skipUntranslatedFilesboolean

Defines whether to export only translated files

Note: true value can't be used with skipUntranslatedStrings=true in same request

exportWithMinApprovalsCountinteger

Defines whether to export only approved strings

Note: value greater than 0 can't be used with exportStringsThatPassedWorkflow=true in same request

exportStringsThatPassedWorkflowboolean

Defines whether to export only strings that passed workflow

Note: true value can't be used with exportWithMinApprovalsCount>0 in same request or in projects without an assigned workflow

Example request

{
  "targetLanguageId": "uk",
  "exportStringsThatPassedWorkflow": true
}

Response

File translation download URL

Example response

{
  "data": {
    "url": "https://production-enterprise-importer.downloads.crowdin.com/992000002/2/14.xliff?response-content-disposition={disposition}&X-Amz-Content-Sha256={sha}&X-Amz-Algorithm={algorithm}&X-Amz-Credential={credentials}&X-Amz-Date={date}&X-Amz-SignedHeaders={headers}&X-Amz-Expires={expires}&X-Amz-Signature={signature}",
    "expireIn": "2019-09-20T10:31:21+00:00",
    "etag": "ebd69a1b7e4c23e6d17891a491c94f832e0c82e4692dedb35a6cd1e624b62"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.