v4

OpenAPI 3.0.02026-07-31257282489.4 KB
Translations

Update a translatable entry

Pushes a translation for a specific entry and language. The entry ID uses the format "type:id" as returned by GET /translations/entries. The id part is a Mongo id for article, collection and emailtemplate (e.g. "article:507f1f77bcf86cd799439011") and the translation key for statictranslation (e.g. "statictranslation:welcomeText"). Only the specified language is updated; other languages are not affected.

put/translations/entries/{entryId}

Path parameters

entryIdstring required

Headers

projectstring required

Request body

languagestring required

The language code to set the translation for (e.g., "en", "de", "fr").

{"stackTrail":"components:schemas:PutTranslationEntryDto:properties:fields","oasType":"schema","type":"unknown","description":"Key-value pairs of translatable fields.\nKeys depend on the entity type (e.g., \"title\", \"description\", \"content\" for articles).\nValues are plain text or HTML strings depending on the field type.","example":{"title":"Getting Started","description":"Learn the basics","content":"<p>Welcome</p>"}}

Example request

{
  "fields": {
    "title": "Getting Started",
    "description": "Learn the basics",
    "content": "<p>Welcome</p>"
  }
}

Response

Ok

{"stackTrail":"paths:/translations/entries/{entryId}:put:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}