Manually replace the stored content of a single existing translation.
Manually replace the stored content of a single existing translation β used when the auto-generated output needs a fix.
Auth: Bearer JWT (WorkOS).
{
"document_id": "<uuid>",
"language": "fr",
"content": { "title": "Bonjour", "body": "..." }
}
| Field | Type | Required | Notes |
|---|---|---|---|
document_id | uuid | yes | The translated document. |
language | string | yes | Locale of the translation row to update. |
content | object | yes | New translation content. Must be a JSON object. |
{ "document_id": "...", "language": "fr", "updated": true }
Note: this does not update the translation's source_hash, so a later POST /translation may treat the source as unchanged and keep your manual edit in place.
curl -X PATCH '{CMS_API_URL}/translations' \
-H 'Authorization: Bearer <workos-jwt>' \
-H 'Content-Type: application/json' \
-d '{"document_id":"<uuid>","language":"fr","content":{}}'
400 β content is not a JSON object401 β missing or invalid JWT404 β no translation row for document_id + language