PUT/v2/projects/{projectId}/translations/{translationId}/set-outdated-flag/{state}

Set a translation's outdated flag

Sets whether a translation is marked as outdated because its base-language translation changed. Supply state as a boolean to set the outdated flag on the translation identified by projectId and translationId. The response includes the updated translation state.

3 parameters
translationIdintegerrequired
The int64 identifier of the translation whose outdated flag you want to set.
statebooleanrequired
The boolean value to set for the translation's outdated flag.
projectIdintegerrequired
The int64 identifier of the project containing the translation.

5 status codes
200Returns the updated translation, including its identifier, auto-translated flag, outdated flag, and state.
autobooleanrequired
Was translated using Translation Memory or Machine translation service?
idintegerrequired
Id of translation record
mtProviderstringoptional
Which machine translation service was used to auto translate this
Allowed:GOOGLEAWSDEEPLAZUREBAIDUPROMPT
outdatedbooleanrequired
Whether base language translation was changed after this translation was updated
statestringrequired
State of translation
Allowed:UNTRANSLATEDTRANSLATEDREVIEWEDDISABLED
textstringoptional
Translation text
400Returned when the request is invalid, including when `state` is not a boolean value.
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 does not have valid authentication.
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 does not have permission to update the translation.
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 specified project or translation cannot be 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 request is invalid, including when state is not a boolean value. A 401 is returned when the request has no valid authentication, and a 403 is returned when the authenticated user lacks permission to update the translation. A 404 is returned when the specified project or translation cannot be found.