Starts translation for a content item and returns a job handle. There are three translation strategies: 0 - skip translation if the content already exists in the target language, 1 - add a new version in the target language, and 2 - add a new version in the target language and reset the workflow.
Security
Bearer
Translation request input.
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/content-items/{id}/translate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- text/json
- application/*+json
curl -i -X POST \
https://edge-platform.sitecorecloud.io/authoring/api/v1/content-items/76036f5e-cbce-46d1-af0a-4143f9b557aa/translate \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"sourceLanguage": "en",
"targetLanguage": "jp",
"translationStrategy": 0
}'Response
{ "handle": "job-handle-1" }