Export translations (delta)
Works out, per target language, the blocks of the subject’s modules at ref (default main) that need translating (outdated or missing in the translation status, and not at a provider in an open job), and records them as a translation job, sent: they are at-provider from then on, and GET /translations/exports/{jobId}/file gives the XLIFF. A module reached through several module references is sent once. A module counts in a language only where you read it (your content.read scope), would see a translation in that language and hold translation.manage on it there. Answers the job with its counts in meta (modules, units, words; per language in meta.languages), 201 with Location. With meta.dryRun: the same answer (200, meta.dryRun: true), nothing recorded. Records a translation-job.export audit event. Needs translation.manage and content.read.
bearerAuthorizationBearer <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.
X-Ccms-User?stringDemo 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).
application/vnd.api+json- body
data*meta?A dry run: what would be sent.
application/vnd.api+json- response
data*curl -X POST 'http://localhost:3000/translations/exports' \ -H 'Content-Type: application/vnd.api+json' \ -d '{ "data": { "type": "TranslationJob", "attributes": { "languages": [ "string" ], "subject": { "type": "manual", "manualId": "string" } } }}'{ "data": { "type": "TranslationJob", "id": "string", "attributes": { "languages": [ "string" ], "subject": { "type": "manual", "manualId": "string" }, "ref": "string", "commit": "string", "state": "sent", "dueDate": "2019-08-24", "createdBy": { "kind": "user", "id": "string" }, "createdAt": "2019-08-24T14:15:22Z" }, "meta": { "modules": 0, "units": 0, "words": 0, "languages": [ { "lang": "string", "modules": 0, "units": 0, "words": 0 } ], "dryRun": true } }}