OpenFolia

Download a translation job as a COTI package

GET
/translations/exports/{jobId}/package

The job as a COTI level 1 package for a translation management system (application/zip, <timestamp>_translation-<jobId>.coti, Content-Disposition: attachment): one translation project per target language, in a folder <jobId>-<lang>_<source>_<target>, each with its COTI.xml (package-id the job, project-id <jobId>-<lang>, the export's time as checkout-date, the job's due day as due-date, languages as <language>-<region> codes, status="none") and the job's XLIFF in translation files/, exactly as GET /translations/exports/{jobId}/file gives it. A returned package is imported with POST /translations/imports. A job is there for its exporter, and for whoever holds translation.manage for each of its target languages and content.read for its source and target languages, in roles whose scope restricts nothing but languages (so neither its subject nor its counts tell of content outside their scope); a job exported from a ref that was not released (its ref and commit are drafts) only for holders of content.read.draft, and for anyone but its exporter only where content.read.draft covers those languages in the same way. To anyone else it is not found. Needs translation.manage and content.read.

Authorization

bearer
headerAuthorizationBearer <JWT>

A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.

Path Parameters

jobId*string

The translation job’s ID (a UUID). One that names no job, malformed or not, or a job in a language you do not manage, is 404.

Formatuuid

Header Parameters

X-Ccms-User?string

Demo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).

Response Body

The package.

response?unknownapplication/zip
Example Request
curl -X GET 'http://localhost:3000/translations/exports/497f6eca-6276-4993-bfeb-53cbbbba6f08/package'
Example Response
null