curl --request PUT \
--url https://cloud.memsource.com/web/api2/v2/projectTemplates/{projectTemplateUid}/transMemories \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dataPerContext": [
{
"transMemories": [
{
"transMemory": {
"uid": "<string>"
},
"readMode": true,
"writeMode": true,
"penalty": 50,
"applyPenaltyTo101Only": true,
"order": 123
}
],
"targetLang": "<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 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dataPerContext": [
{
"transMemories": [
{
"transMemory": {
"uid": "<string>"
},
"readMode": true,
"writeMode": true,
"penalty": 50,
"applyPenaltyTo101Only": true,
"order": 123
}
],
"targetLang": "<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
}
]
}Get a token from auth/login endpoint and then pass it in the Authorization HTTP header in every subsequent API call. For more information visit our help center.
Show child attributes
OK
Show child attributes
Was this page helpful?