Manual
CLI
API
Log in Get started free

Approve a translation

Approves a translation that is waiting for review. It is then published.

Approves a translation that is waiting for review. It is then published.

HTTP
POST /keys/{keyId}/translations/{language}/approve

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Project reviewer or manager.

Path parameters #

ParameterDescription
keyIdThe id of the key.
languageThe language code, such as de-de.

Response 200 #

The translation after approval.

JSON
{ "value": "Kasse", "status": "approved" }

Response fields #

FieldTypeDescription
valuestringThe translation.
statusstringdraft, review or approved after saving, changes after requesting changes.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe key does not exist, you have no access to its project, or keyId is not a UUID.
409branch_frozenThe branch is frozen. The same call also fails with project_frozen when the project is frozen.
403forbiddenYou are a translator in the project.
403self_review_disabledYou submitted the translation yourself and the project does not allow reviewing your own.
409not_in_reviewThe translation is not waiting for review.
429rate_limitedToo 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.