curl --request POST \
--url https://cloud.memsource.com/web/api2/v3/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,
"confirmMatches": true,
"confirmMatchesThreshold": 0.5,
"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": "<unknown>",
"project": {
"uid": "<string>",
"name": "<string>"
}
},
"reference": {
"uid": "<string>",
"type": "JOB"
}
}curl --request POST \
--url https://cloud.memsource.com/web/api2/v3/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,
"confirmMatches": true,
"confirmMatchesThreshold": 0.5,
"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": "<unknown>",
"project": {
"uid": "<string>",
"name": "<string>"
}
},
"reference": {
"uid": "<string>",
"type": "JOB"
}
}LOCKED, NOT_LOCKED If pre-translate settings from project should be used.
If true, preTranslateSettings values are ignored. Default: false
Pre-translate settings
Show child attributes
Propagate repetitions. Default: false
Set segment status to confirmed for: Repetitions. Default: false
Pre-translate & set job to completed: Set job to completed once pre-translated. Default: false
Pre-translate & set job to completed when all segments confirmed: Set job to completed once pre-translated and all segments are confirmed. Default: false
Pre-translate & set job to completed: Set project to completed once all jobs pre-translated. Default: false
Overwrite existing translations in target segments. Default: false
Translation memory related settings
Show child attributes
Pre-translate from translation memory. Default: true
Pre-translation threshold percent. Default: 0.7
0 < x < 1.01Set segment status to confirmed for: 100% translation memory matches. Default: false
Set segment status to confirmed for: 101% translation memory matches. Default: false
Lock section: 100% translation memory matches. Default: false
Lock section: 101% translation memory matches. Default: false
Machine translation related settings
Show child attributes
Pre-translate from machine translation. Default: true
Machine translation behavior. Default: APPLY_MT_ABOVE_THRESHOLD
APPLY_MT_ABOVE_THRESHOLD, COMPARE_AND_BEST_MATCH Lock section: 100% machine translation suggestions. Default: false
Set segment status to confirmed for:
machine translation suggestions above confirmMatchesThreshold. Default: false
Machine translation suggestions percent. Default: 1.0
0 < x < 1Do not put machine translations to target and use alt-trans fields (alt-trans in mxlf). Default: false
Suggest MT only for segments with a TM match below. Default: true
Suggest MT only for segments with a TM match below threshold. Default: 1.0
0 < x < 1.01Non-translatables related settings
Show child attributes
Pre-translate non-translatables. Default: true
Set segment status to confirmed for: 100% non-translatables. Default: false
Lock section: 100% non-translatables. Default: false
Accepted
Show child attributes
Show child attributes
SYS_ADMIN, SYS_ADMIN_READ, ADMIN, PROJECT_MANAGER, LINGUIST, GUEST, SUBMITTER, PORTAL_MEMBER PRE_ANALYSE, POST_ANALYSE, CONTINUOUS_PRE_ANALYSE, CONTINUOUS_POST_ANALYSE, COMPARE_ANALYSE, PARENT_ANALYSE, PRE_TRANSLATE, ASYNC_TRANSLATE, IMPORT_JOB, IMPORT_FILE, ALIGN, EXPORT_TMX_BY_QUERY, EXPORT_TMX, IMPORT_TMX, IMPORT_MXLF_INTO_TM, IMPORT_TBX, INSERT_INTO_TM, DELETE_TM, CLEAR_TM, QA, QA_V3, UPDATE_CONTINUOUS_JOB, UPDATE_SOURCE, UPDATE_TARGET, EXTRACT_CLEANED_TMS, GLOSSARY_PUT, GLOSSARY_DELETE, CREATE_PROJECT, EXPORT_COMPLETE_FILE, IMPORT_ANNOTATIONS, FILE_FLOW_CONVERTER_IMPORT, FILE_FLOW_MT_PRETRANSLATE, FILE_FLOW_QUALITY_ESTIMATION, AUTO_LQA Show child attributes
Show child attributes
Code, e.g. NOT_FOUND.
Optional human-readable message.
Show child attributes
Code, e.g. NOT_FOUND.
Optional human-readable message.
Was this page helpful?