Request

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
Path
idstringrequired

The content item identifier.

Example:76036f5e-cbce-46d1-af0a-4143f9b557aa
Bodyrequired

Translation request input.

sourceLanguagestring, non-emptyrequired

Source language for translation.

Example:"en"
targetLanguagestring, non-emptyrequired

Target language for translation.

Example:"jp"
translationStrategyinteger, (int32)(TranslationStrategy)

Translation strategy to be used.

Enum:012
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
  }'

Responses

Successful operation

Bodyapplication/json
handlestring or null

The handle of the job.

Example:"job-handle-1"
Response
{ "handle": "job-handle-1" }