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.

4 parameters
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.
Allowed:RESOLUTION_NOT_NEEDEDNEEDS_RESOLUTIONRESOLVED
projectIdintegerrequired
The unique identifier of the project containing the translation.

5 status codes
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
Allowed:RESOLUTION_NOT_NEEDEDNEEDS_RESOLUTIONRESOLVED
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
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 you do not have permission to change the comment state.
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 comment, translation, or project 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 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.