PUT
/v2/projects/{projectId}/translations/{translationId}/set-state/{state}Set a translation state
Updates the state of a translation in a project. Set state to TRANSLATED or REVIEWED to record its progress. The response includes the translation record and its current state.
translationIdintegerrequired
The integer identifier of the translation to update.
statestringrequired
The translation state to set: `TRANSLATED` or `REVIEWED`.
projectIdintegerrequired
The integer identifier of the project containing the translation.
200Returns the translation record, including its identifier, text, state, whether it was translated automatically, and whether it is outdated.
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
outdatedbooleanrequired
Whether base language translation was changed after this translation was updated
statestringrequired
State of translation
textstringoptional
Translation text
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is not authorized.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have permission to update the translation state.
codestringrequired
paramsarray<object>optional
404Returned when the translation or project is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid; a 401 when the authenticated user is not authorized; a 403 when the authenticated user lacks permission; and a 404 when the translation or project is not found. The translationId and projectId path parameters must identify the translation and project, and the state path parameter must be TRANSLATED or REVIEWED.