PUT/v2/projects/{projectId}/translation-memories/{translationMemoryId}

Update a project's translation memory assignment

Updates a project's assignment settings for a translation memory. Supply readAccess and writeAccess and optionally change the penalty override or suggestion priority. Omit priority to keep its current value.

2 parameters · 4 body fields
translationMemoryIdintegerrequired
The numeric identifier of the translation memory assignment to update.
projectIdintegerrequired
The numeric identifier of the project containing the assignment.

Updated access and suggestion settings for the translation memory assignment. Include both access flags; penalty and priority can be omitted.

penaltyintegeroptional
Per-assignment penalty override (0–100). When null, the TM's default penalty applies.
priorityintegeroptional
Priority in suggestion results (lower = higher priority). Omit to leave the current priority unchanged.
readAccessbooleanrequired
Whether this project can read from the TM
writeAccessbooleanrequired
Whether this project writes new translations to the TM

5 status codes
200Returns the updated assignment settings, including its identifier, name, type, source language, access flags, priority, default penalty, and write-only-reviewed setting.
defaultPenaltyintegerrequired
penaltyintegeroptional
priorityintegerrequired
readAccessbooleanrequired
sourceLanguageTagstringrequired
translationMemoryIdintegerrequired
translationMemoryNamestringrequired
typestringrequired
Allowed:PROJECTSHARED
writeAccessbooleanrequired
writeOnlyReviewedbooleanrequired
400Returned when a required access flag is missing or a supplied penalty or priority violates its constraint.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when the authenticated user is not permitted to update the assignment.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the project or translation memory assignment is not found.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned when the update request is invalid, a 401 when the request is unauthenticated, a 403 when the authenticated user cannot update the assignment, and a 404 when the project or translation memory assignment is not found. The translationMemoryId and projectId path parameters must identify the assignment to update. The body must include readAccess and writeAccess; penalty must be from 0 to 100 and priority must be at least 0 when supplied.