profound-logoProfound CMS
⌘K
Admin
Theme
DocsTutorialBlogPhilosophy
DocsTutorialBlogPhilosophy

Hybrid

Collection of Pages with ComponentsTypes of ComponentsSetup server sent events (SSE) content refetchInstall Profound CMS as a proxyCEL Scripting in Template BuilderProject ScaffoldingMedia Library

Headless

Quick startSplit Screen JSON Component Builder with LLMComponent Zod Pull

REST API

REST API OverviewgetConnect your websitegetGET /routesgetGET /routegetGET /blocksgetGET /blocks/with-cel-cachegetGET /blocks/generatedgetGET /componentsgetGET /components/{name}getGET /dataset/{schema_name}getGET /content-changes (SSE)patchPATCH /dataset/{schema_name}postPOST /translationpatchPATCH /translationsgetGET /usagepostPOST /csvpatchPATCH /csv
All Systems Operational
Powered Byprofound-logo
Theme

PATCH /translations

Manually replace the stored content of a single existing translation.

Manually replace the stored content of an existing translation. Use this when machine-generated output needs to be corrected without retranslating the entire document.

Endpoint: PATCH /translations Auth: Bearer JWT (WorkOS)

Request body

{
  "document_id": "<uuid>",
  "language": "fr",
  "content": {
    "title": "Bonjour",
    "body": "..."
  }
}
FieldTypeRequiredNotes
document_iduuidyesSource document associated with the translation.
languagestringyesLanguage code of the translation to update.
contentobjectyesReplacement translated content. Must be a JSON object.

The combination of document_id and language identifies the translation row.

Response

{
  "document_id": "<uuid>",
  "language": "fr",
  "updated": true
}

Source-hash behavior

Manually updating a translation does not change its source_hash.

As a result:

  • if the source document has not changed, a later POST /translation skips the translation and preserves the manual correction
  • if the source document changes, its hash no longer matches and a later translation job may regenerate and overwrite the manually corrected content

Example

curl -X PATCH '{TRANSLATION_API_URL}/translations' \
  -H 'Authorization: Bearer <workos-jwt>' \
  -H 'Content-Type: application/json' \
  -d '{
    "document_id": "<uuid>",
    "language": "fr",
    "content": {
      "title": "Bonjour",
      "body": "Contenu corrigΓ©."
    }
  }'

Errors

  • 400 Bad Request β€” content is not a JSON object
  • 401 Unauthorized β€” bearer token is missing or invalid
  • 404 Not Found β€” no translation exists for the supplied document_id and language
  • 500 Internal Server Error β€” the translation could not be updated due to a database or service error
Continue Reading
Previousβ€ΉPOST /translationNextGET /usageβ€Ί