Skip to main content
PUT
Update a translation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Project ID

contentId
string
required

Content ID

versionId
string
required

Content version ID

code
string
required

Localization code (not the default locale)

Body

application/json
translations
object

Unit path → translated text. Only the listed units change; a blank value keeps the existing translation. Every path must be one the version currently has (read them first) — unknown paths are rejected, not dropped. Saving re-bases the WHOLE translation's drift tracking on the current source text, so send every unit you intend to fix for this locale in ONE request.

enabled
boolean

Deliver this translation (true) or fall back to the source language (false). Sent alone it only flips the switch and leaves the translation untouched.

Response

Updated translation

object
enum<string>
required
Available options:
contentVersionLocalization
versionId
string
required
code
string
required
name
string
required
enabled
boolean
required

Whether this translation is delivered. A disabled (or missing) translation means users of that locale see the source language.

stats
object
required
units
object[]
required
updatedAt
string<date-time> | null
required

When the translation was last saved; null when it was never saved.