Approves a translation that is waiting for review. It is then published.
HTTP
POST /keys/{keyId}/translations/{language}/approveAccess: Session token only. API keys get 403 with insufficient_scope.
Role: Project reviewer or manager.
Path parameters #
| Parameter | Description |
|---|---|
keyId | The id of the key. |
language | The language code, such as de-de. |
Response 200 #
The translation after approval.
JSON
{ "value": "Kasse", "status": "approved" }Response fields #
| Field | Type | Description |
|---|---|---|
value | string | The translation. |
status | string | draft, review or approved after saving, changes after requesting changes. |
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. |
| 409 | branch_frozen | The branch is frozen. The same call also fails with project_frozen when the project is frozen. |
| 403 | forbidden | You are a translator in the project. |
| 403 | self_review_disabled | You submitted the translation yourself and the project does not allow reviewing your own. |
| 409 | not_in_review | The translation is not waiting for review. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.
Notes #
Triggers the translation.approved webhook and adds the translation to the translation memory.