POST
/v2/projects/{projectId}/translations/{translationId}/commentsCreate a translation comment
Creates a comment on a specific translation in a project. Provide a comment state and non-empty text to record the comment and its resolution status. The response contains the created comment, including its author and timestamps.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
translationIdintegerrequired
The unique identifier of the translation to comment on.
projectIdintegerrequired
The unique identifier of the project containing the translation.
The comment state and text. Both fields are required.
statestringrequired
The comment state: RESOLUTION_NOT_NEEDED, NEEDS_RESOLUTION, or RESOLVED.
textstringrequired
The comment text. Must contain at least one character.
201Returns the created 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 required field is missing or a field value fails validation.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when you do not have permission to comment on the translation.
codestringrequired
paramsarray<object>optional
404Returned when the translation or project cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request body is invalid. A 401 is returned when authentication is missing or invalid, a 403 when you lack permission, and a 404 when the translation or project cannot be found. The translationId path parameter and projectId path parameter must identify the translation and its project. Both state and text are required; state must be RESOLUTION_NOT_NEEDED, NEEDS_RESOLUTION, or RESOLVED, and text must contain at least one character.