Cancel a translation job
Cancels a sent job: its units are no longer at-provider, so the next export sends them again. Answers the job, cancelled. Records a translation-job.cancel audit event. 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.
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.
jobId*stringThe 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.
uuidX-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- response
data*curl -X POST 'http://localhost:3000/translations/exports/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'{ "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 } }}