Mark a translation as current
For a source fix that needs no new translation: in a draft change set of yours, the translation record of the module in lang takes the source’s current hash for every block the translation has (the branch head as sourceCommit), without changing the translated text, so they are up-to-date once merged. Through the change-set actions: takes the module’s lock (in lang) for the change set, then a save point writing only the record, with a translation.mark-current audit event. Needs translation.manage on the module in lang, and content.edit with its scope. With designId or manualId instead (#656), a page design’s region text or a manual’s own text (its cover images’ alternative text) is marked current the same way: their record is part of their file, so the save point holds a working copy of it with only the record changed. A design needs translation.manage restricted by nothing but languages and unrestricted content.edit; a manual translation.manage over its audience in lang and the right to change its manifest. With config: true instead (#731), the project labels in openfolia.yaml the same way (the configuration’s lock and a working copy of it): it needs translation.manage restricted by nothing but languages and the right to change the configuration (unrestricted content.edit and admin.roles).
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*application/vnd.api+json- response
data*curl -X POST 'http://localhost:3000/translations/mark-current' \ -H 'Content-Type: application/vnd.api+json' \ -d '{ "data": { "type": "TranslationMarkCurrent", "attributes": { "changeSetId": "string", "lang": "string" } }}'{ "data": { "type": "TranslationMarkCurrent", "id": "string", "attributes": { "lang": "string", "moduleId": "string", "designId": "string", "manualId": "string", "config": true, "commit": "string", "blocks": 0 }, "relationships": { "changeSet": { "data": { "type": "ChangeSet", "id": "string" } } } }}