POST
/
api2
/
v2
/
projects
/
{projectUid}
/
jobs
/
preTranslate
Pre-translate job
curl --request POST \
  --url https://cloud.memsource.com/web/api2/v2/projects/{projectUid}/jobs/preTranslate \
  --header 'Content-Type: application/json' \
  --data '{
  "jobs": [
    {
      "uid": "<string>"
    }
  ],
  "segmentFilters": [
    "LOCKED"
  ],
  "useProjectPreTranslateSettings": true,
  "callbackUrl": "<string>",
  "preTranslateSettings": {
    "autoPropagateRepetitions": true,
    "confirmRepetitions": true,
    "setJobStatusCompleted": true,
    "setJobStatusCompletedWhenConfirmed": true,
    "setProjectStatusCompleted": true,
    "overwriteExistingTranslations": true,
    "translationMemorySettings": {
      "useTranslationMemory": true,
      "translationMemoryThreshold": 0.505,
      "confirm100PercentMatches": true,
      "confirm101PercentMatches": true,
      "lock100PercentMatches": true,
      "lock101PercentMatches": true
    },
    "machineTranslationSettings": {
      "useMachineTranslation": true,
      "machineTranslationBehavior": "APPLY_MT_ABOVE_THRESHOLD",
      "lock100PercentMatches": true,
      "confirm100PercentMatches": true,
      "useAltTransOnly": true,
      "mtSuggestOnlyTmBelow": true,
      "mtSuggestOnlyTmBelowThreshold": 0.505
    },
    "nonTranslatableSettings": {
      "preTranslateNonTranslatables": true,
      "confirm100PercentMatches": true,
      "lock100PercentMatches": true
    }
  }
}'
{
  "asyncRequest": {
    "id": "<string>",
    "createdBy": {
      "firstName": "<string>",
      "lastName": "<string>",
      "userName": "<string>",
      "email": "<string>",
      "role": "SYS_ADMIN",
      "id": "<string>",
      "uid": "<string>"
    },
    "dateCreated": "2023-11-07T05:31:56Z",
    "action": "PRE_ANALYSE",
    "asyncResponse": {
      "dateCreated": "2023-11-07T05:31:56Z",
      "errorCode": "<string>",
      "errorDesc": "<string>",
      "errorDetails": [
        {
          "code": "<string>",
          "args": {},
          "message": "<string>"
        }
      ],
      "warnings": [
        {
          "code": "<string>",
          "args": {},
          "message": "<string>"
        }
      ]
    },
    "parent": {},
    "project": {
      "name": "<string>",
      "uid": "<string>"
    }
  },
  "reference": {
    "uid": "<string>",
    "type": "JOB"
  }
}

Path Parameters

projectUid
string
required

Body

application/json

Response

202
application/json

Accepted

The response is of type object.