PATCH

Update Content


Developer Preview

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:

Copy
{ "fields": { "title": {} } }
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Wix Multilingual - Write Translation Content
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/translation-content/v1/contents/{content.id}

Path Params
content.idstringRequired

Translation content ID.

Body Params
contentContentRequired

Translation content to update.

Response Object
contentContent

Updated translation content.

Update Content By ID
Request
cURL
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" } }'
Response
JSON
{ "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 } } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?