Adds a comment to the translation of a key in one language.
HTTP
POST /keys/{keyId}/translations/{language}/commentsAccess: Session token only. API keys get 403 with insufficient_scope.
Role: Any role in the project.
Path parameters #
| Parameter | Description |
|---|---|
keyId | The id of the key. |
language | The language code, such as de-de. |
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
body | string | yes | The comment. At most 2000 characters. |
JSON
{ "body": "Is this the right tone?" }Response 201 #
The comment is added. There is no body.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 404 | not_found | The key does not exist, you have no access to its project, or keyId is not a UUID. |
| 422 | invalid_request | body is empty or too long. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.