This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a translation content item by ID.
To remove a field, pass the field key with an empty object as the value. For example:
{
"fields": {
"title": {}
}
}
You can only call this method when authenticated as a Wix app or Wix user identity.
Translation content ID.
Translation content to update.
Updated translation content.
curl -X PATCH \
'https://www.wixapis.com/translation-content/v1/contents/8046df3c-7575-4098-a5ab-c91ad8f33c47' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
--data-binary '{
"content": {
"schemaId": "a4caeb4e-81ce-4921-a8d3-1f58329acfc5",
"parentEntityId": "NewParentEntity-01"
}
}'
{
"content": {
"id": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
"createdDate": "2019-10-30T17:22:10.299Z",
"updatedDate": "2019-10-30T17:22:10.299Z",
"schemaId": "a4caeb4e-81ce-4921-a8d3-1f58329acfc5",
"entityId": "Product-001",
"locale": "en-us",
"publishStatus": "UNPUBLISHED",
"parentEntityId": "NewParentEntity-01",
"previewField": "This is the title in English.",
"fields": {
"title": {
"id": "title",
"textValue": "This is the title in English.",
"updatedBy": "USER",
"published": false,
"schemaFieldKey": "title",
"index": 1
},
"description": {
"id": "description",
"richContent": {
"nodes": [
{
"type": "PARAGRAPH",
"id": "qk4dj27",
"nodes": [
{
"type": "TEXT",
"text_data": {
"text": "This is the description in English."
}
}
]
}
],
"metadata": {
"version": 1,
"created_timestamp": "2019-10-30T17:22:10.299Z",
"updated_timestamp": "2019-10-30T17:22:10.299Z",
"id": "ee5c8167-31a2-4bdd-8f29-f376d1a36d11"
}
},
"updatedBy": "USER",
"published": false,
"schemaFieldKey": "description",
"index": 2
},
"image(01)": {
"id": "image(01)",
"image": {
"id": "2ac220f5-ffef-413c-854f-35c9ad0b1703",
"url": "some-image-url.jpg",
"height": 1920,
"width": 1920
},
"updatedBy": "USER",
"published": false,
"schemaFieldKey": "image()",
"index": 3
},
"image(02)": {
"id": "image(02)",
"image": {
"id": "5bc220f5-ffef-413c-854f-35c9ad0a1492",
"url": "other-image-url.jpg",
"height": 1920,
"width": 1920
},
"updatedBy": "USER",
"published": false,
"schemaFieldKey": "image()",
"index": 4
}
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.