Create translation comment
POST/v2/projects/:projectId/translations/create-comment
Creates a translation comment. Empty translation is stored, when not exists.
Request
Path Parameters
- application/json
Body
required
Possible values: [RESOLUTION_NOT_NEEDED
, NEEDS_RESOLUTION
, RESOLVED
]
Responses
- 201
- 400
- 401
- 403
- 404
Created
- */*
- Schema
- Example (from schema)
Schema
translation objectrequired
Translations object containing values updated in this request
Id of translation record
Translation text
Possible values: [UNTRANSLATED
, TRANSLATED
, REVIEWED
, DISABLED
]
State of translation
Whether base language translation was changed after this translation was updated
Was translated using Translation Memory or Machine translation service?
Possible values: [GOOGLE
, AWS
, DEEPL
, AZURE
, BAIDU
, TOLGEE
]
Which machine translation service was used to auto translate this
comment objectrequired
Id of translation comment record
Text of comment
Possible values: [RESOLUTION_NOT_NEEDED
, NEEDS_RESOLUTION
, RESOLVED
]
State of translation
author objectrequired
User who created the comment
avatar object
Date when it was created
Date when it was updated
{
"translation": {
"en": {
"id": 100000003,
"text": "This is super translation!"
}
},
"comment": {
"id": 0,
"text": "string",
"state": "RESOLUTION_NOT_NEEDED",
"author": {
"id": 0,
"username": "string",
"name": "string",
"avatar": {
"large": "string",
"thumbnail": "string"
},
"deleted": true
},
"createdAt": "2024-04-27T10:07:49.551Z",
"updatedAt": "2024-04-27T10:07:49.551Z"
}
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string