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

Authorizations

Authorization
string
header
required

Bearer token: a shop API key (WEAVERSE_API_KEY), a scoped API key or a delegated MCP OAuth token; translation-unit routes also accept a project-bound translation agent token. Each operation lists the scope it requires; the scope table is in the API description.

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.