Skip to main content
POST
Apply translations for one page and locale

Authorizations

Authorization
string
header
required

Bearer authentication: a shop API key (WEAVERSE_API_KEY), a scoped API key, a delegated MCP OAuth token, or (translation-unit routes only) a project-bound translation agent token. Scopes: content:read — Read projects, pages, theme settings, versions, drafts and translation units. content:write — Save drafts and make non-destructive edits (page items, metadata, SEO, assignments, languages, glossary). Never publishes or deletes. content:publish — Publish drafts, schedule/reschedule/cancel publications, restore versions, publish global sections. content:delete — Delete pages, global sections, languages, static keys, override reverts; required with project:manage for project deletion. project:manage — Create/copy/delete projects, settings, variants, hierarchy, backups, restore-as-new, previews, hostname policy. translations:read — Read translation units only (no general content access). translations:write — Apply translation units only; never mutates page content. A legacy unscoped API key keeps read/write/translation baseline access and every pre-scope endpoint, but never gains publish/delete/project-manage implicitly.

Path Parameters

projectId
string
required
pageId
string
required

Body

application/json
locale
string
required

Target locale, resolved through the same language identity the storefront uses. Must be a configured, non-default language.

translations
object[]
required

Entries echoed from GET with translation replaced. source and targetGeneration must be the values GET returned.

Maximum array length: 250

Response

Decision for the whole batch. applied + stale = requested; a non-zero stale means those keys must be re-read and resubmitted.

object
enum<string>
Available options:
page_translations_update
projectId
string
pageId
string
language
object
requested
integer
applied
integer

Entries that passed both the source and target compare-and-set and were written.

stale
integer

Entries refused because the source or the target moved since the read. Re-run GET and resubmit those keys; they were NOT written.