PUT
/v2/projects/{projectId}/translations/{translationId}/comments/{commentId}/set-state/{state}Set the state of a translation comment
Updates the state of a comment on a translation in a project. Provide the comment, translation, and project identifiers together with the desired state. The response returns the comment with its updated state.
translationIdintegerrequired
The unique identifier of the translation containing the comment.
commentIdintegerrequired
The unique identifier of the comment whose state to change.
statestringrequired
The new comment state: RESOLUTION_NOT_NEEDED, NEEDS_RESOLUTION, or RESOLVED.
projectIdintegerrequired
The unique identifier of the project containing the translation.
200Returns the updated translation comment, including its author, identifier, state, text, and creation and update timestamps.
authorobjectrequired
User who created the comment
createdAtstringrequired
Date when it was created
idintegerrequired
Id of translation comment record
statestringrequired
State of translation
textstringrequired
Text of comment
updatedAtstringrequired
Date when it was updated
400Returned when a request parameter is invalid, including a state outside the accepted values.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when you do not have permission to change the comment state.
codestringrequired
paramsarray<object>optional
404Returned when the comment, translation, or project cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when a request parameter is invalid. A 401 is returned when authentication is missing or invalid, a 403 when you lack permission, and a 404 when the comment, translation, or project cannot be found. The translationId path parameter, commentId path parameter, and projectId path parameter must identify the comment and its containing resources. The state path parameter must be RESOLUTION_NOT_NEEDED, NEEDS_RESOLUTION, or RESOLVED.