curl --request PUT \
--url https://cloud.memsource.com/web/api2/v2/projectTemplates/{projectTemplateUid}/transMemories \
--header 'Content-Type: application/json' \
--data '
{
"dataPerContext": [
{
"transMemories": [
{
"transMemory": {
"uid": "<string>"
},
"readMode": true,
"writeMode": true,
"penalty": 50,
"applyPenaltyTo101Only": true,
"order": 123
}
],
"targetLang": "<string>",
"workflowStep": {
"uid": "<string>"
},
"orderEnabled": true
}
]
}
'{
"transMemories": [
{
"targetLocale": "<string>",
"workflowStep": {
"name": "<string>",
"id": "<string>",
"uid": "<string>",
"order": 123,
"lqaEnabled": true
},
"readMode": true,
"writeMode": true,
"transMemory": {
"id": "<string>",
"uid": "<string>",
"internalId": 123,
"name": "<string>",
"sourceLang": "<string>",
"targetLangs": [
"<string>"
],
"client": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"businessUnit": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"domain": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"subDomain": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"note": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"owner": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"relatedProjectsCount": 123,
"collaboratorsCount": 123,
"canEdit": true
},
"penalty": 123,
"applyPenaltyTo101Only": true,
"order": 123
}
]
}If user wants to edit “All target languages” or “All workflow steps”, but there are already varied TM settings for individual languages or steps, then the user risks to overwrite these individual choices.
curl --request PUT \
--url https://cloud.memsource.com/web/api2/v2/projectTemplates/{projectTemplateUid}/transMemories \
--header 'Content-Type: application/json' \
--data '
{
"dataPerContext": [
{
"transMemories": [
{
"transMemory": {
"uid": "<string>"
},
"readMode": true,
"writeMode": true,
"penalty": 50,
"applyPenaltyTo101Only": true,
"order": 123
}
],
"targetLang": "<string>",
"workflowStep": {
"uid": "<string>"
},
"orderEnabled": true
}
]
}
'{
"transMemories": [
{
"targetLocale": "<string>",
"workflowStep": {
"name": "<string>",
"id": "<string>",
"uid": "<string>",
"order": 123,
"lqaEnabled": true
},
"readMode": true,
"writeMode": true,
"transMemory": {
"id": "<string>",
"uid": "<string>",
"internalId": 123,
"name": "<string>",
"sourceLang": "<string>",
"targetLangs": [
"<string>"
],
"client": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"businessUnit": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"domain": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"subDomain": {
"id": "<string>",
"uid": "<string>",
"name": "<string>"
},
"note": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"owner": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"relatedProjectsCount": 123,
"collaboratorsCount": 123,
"canEdit": true
},
"penalty": 123,
"applyPenaltyTo101Only": true,
"order": 123
}
]
}Show child attributes
Show child attributes
Default: false
Can be set only for Translation Memory with read == true.
Max 2 write TMs allowed per project.
Default: false
0 < x < 100Can be set only for penalty == 1
Default: false
Set translation memory only for the specific project target language
Default: false
OK
Show child attributes
Show child attributes
Show child attributes
SYS_ADMIN, SYS_ADMIN_READ, ADMIN, PROJECT_MANAGER, LINGUIST, GUEST, SUBMITTER, PORTAL_MEMBER Show child attributes
SYS_ADMIN, SYS_ADMIN_READ, ADMIN, PROJECT_MANAGER, LINGUIST, GUEST, SUBMITTER, PORTAL_MEMBER Was this page helpful?