Save or clear a value
Owner, Admin or Editor. Language and all parents must be active. Both keyVersion and the cell version must match. Different language cells have independent versions. ICU requires every declared parameter with compatible usage. Limits: 16 KiB UTF-8, 10 nested expressions and 1,000 AST nodes. Content is scoped to the explicit branch. Branch archives are read-only; current workspace roles still apply.
PATCH /api/v1/workspaces/{workspaceId}/projects/{projectId}/branches/{branchId}/keys/{keyId}/values/{locale}Operation: saveTranslationValue · Download OpenAPI
Access
Section titled “Access”Requires an authenticated Localisync panel session. The API checks current membership and permissions for workspace operations. See authentication and request rules.
sessionCookie
{ "type": "apiKey", "in": "cookie", "name": "__Host-localisync-session", "description": "Opaque server session. Local HTTP development uses its explicitly configured development cookie name."}Parameters
Section titled “Parameters”| Name | Location | Required | Description |
|---|---|---|---|
workspaceId |
path | Yes | |
projectId |
path | Yes | |
keyId |
path | Yes | |
locale |
path | Yes | |
Origin |
header | Yes | Must exactly match the configured panel origin. |
X-CSRF-Token |
header | Yes | Token bound to the current opaque server session. |
branchId |
path | Yes | Explicit branch UUID in this project. No implicit main selection. |
workspaceId
Section titled “workspaceId”{ "type": "string", "format": "uuid"}projectId
Section titled “projectId”{ "type": "string", "format": "uuid"}{ "type": "string", "format": "uuid"}locale
Section titled “locale”{ "type": "string", "minLength": 2, "maxLength": 255}Origin
Section titled “Origin”{ "type": "string"}X-CSRF-Token
Section titled “X-CSRF-Token”{ "type": "string"}branchId
Section titled “branchId”{ "type": "string", "format": "uuid"}Request body
Section titled “Request body”Required: Yes.
application/json
Section titled “application/json”Schema reference: SaveValue.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
value |
string or null | Yes | At most 16 KiB UTF-8. Null, empty or whitespace-only becomes Missing; other whitespace is preserved.; maxLength: 16384 |
version |
integer | Yes | minimum: 0; maximum: 2147483646 |
keyVersion |
integer | Yes | minimum: 1; maximum: 2147483646 |
{ "$ref": "#/components/schemas/SaveValue"}Example payload (illustrative):
{ "value": "Payment successful", "version": 0, "keyVersion": 1}Responses
Section titled “Responses”Committed result. Responses are private and Cache-Control: no-store.
Content type: application/json
Schema reference: TranslationValue.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
keyId |
string | Yes | format: "uuid" |
locale |
string | Yes | minLength: 2; maxLength: 255 |
value |
string or null | Yes | At most 16 KiB UTF-8. Null, empty or whitespace-only becomes Missing; other whitespace is preserved.; maxLength: 16384 |
version |
integer | Yes | Zero means no stored value yet. Clearing a stored value increments its version.; minimum: 0 |
evidenceId |
string or null | No | Current review evidence, included in matrix cells; null means Unreviewed.; format: "uuid" |
{ "$ref": "#/components/schemas/TranslationValue"}Invalid request or ICU value; field and locale issues may be included.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Sign in to continue.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Current role cannot perform this action.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Project or key is not visible in the current workspace.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Stale version, reserved key name, archive or inactive-language conflict. Compare current data before retrying.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Mutation exceeds 1 MiB.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Request limit exceeded.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}A required service is unavailable; no successful change is claimed.
Content type: application/json
Schema reference: Error.
| Field | Type | Required | Constraints / description |
|---|---|---|---|
error |
string | Yes | — |
message |
string | Yes | — |
requestId |
string | No | — |
details |
object | No | — |
statusCode |
integer | No | May be included by HTTP-level request limits. |
{ "$ref": "#/components/schemas/Error"}Related guidance
Section titled “Related guidance”Choose whether we remember appearance preferences and use Google Analytics on Localisync and its documentation. Optional storage stays off until you accept.
Read our cookie policy