POST
/
api2
/
v1
/
projects
/
{projectUid}
/
jobs
/
preTranslate
curl --request POST \
  --url https://cloud.memsource.com/web/api2/v1/projects/{projectUid}/jobs/preTranslate \
  --header 'Content-Type: application/json' \
  --data '{
  "jobs": [
    {
      "uid": "<string>"
    }
  ],
  "useTranslationMemory": true,
  "useMachineTranslation": true,
  "machineTranslationBehavior": "APPLY_MT_ABOVE_THRESHOLD",
  "translationMemoryTreshold": 123,
  "insertMachineTranslationIntoTarget": true,
  "preTranslateNonTranslatables": true,
  "confirm100NonTranslatableMatches": true,
  "confirm100TranslationMemoryMatches": true,
  "confirm101TranslationMemoryMatches": true,
  "lock100NonTranslatableMatches": true,
  "lock100TranslationMemoryMatches": true,
  "lock101TranslationMemoryMatches": true,
  "setJobStatusCompleted": true,
  "setJobStatusCompletedWhenConfirmed": true,
  "setProjectStatusCompleted": true,
  "lock100MachineTranslationMatches": true,
  "confirm100MachineTranslationMatches": true,
  "overwrite": true,
  "segmentFilters": [
    "LOCKED"
  ],
  "useProjectPreTranslateSettings": true,
  "mtSuggestOnlyTmBelow": true,
  "mtSuggestOnlyTmBelowThreshold": 0.505,
  "callbackUrl": "<string>"
}'
{
  "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>"
        }
      ],
      "acceptedSegmentsCount": 123
    },
    "parent": {},
    "project": {
      "name": "<string>",
      "uid": "<string>"
    }
  }
}

Path Parameters

projectUid
string
required

Body

application/json

Response

200
application/json

successful operation

The response is of type object.