Manual
CLI
API
Log in Get started free

Translate a glossary term

Sets how a term is translated in one language. The translation of a curator is approved straight away; others propose it, and it stays `pending`. An empty value clears it.

Sets how a term is translated in one language. The translation of a curator is approved straight away; others propose it, and it stays pending. An empty value clears it.

HTTP
PUT /glossary/{termId}/translations/{language}

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

Path parameters #

ParameterDescription
termIdThe id of the term.
languageThe language code, such as de-de.

Request body #

JSON.

FieldTypeRequiredDescription
valuestringyesThe translation. May be empty to clear it.
JSON
{ "value": "Kasse" }

Response 200 #

The term after the change.

JSON
{
  "id": "0197a3cc-a3b9-7aaa-9d00-5b9ebc6a832a",
  "name": "checkout",
  "pos": "Noun",
  "status": "approved",
  "definition": "The step where a customer pays.",
  "example": "Go to checkout.",
  "forbidden": ["cash register"],
  "related": ["cart"],
  "translations": [
    { "code": "de-de", "value": "Kasse", "state": "approved", "annotation": null, "conflict": null }
  ],
  "projectIds": ["0197a3c6-4d53-7a44-87fb-9b3e5c0a2d64"],
  "addedBy": "Ada Lovelace",
  "addedMinutes": 4320,
  "editedBy": "Ada Lovelace",
  "editedMinutes": 60
}

Response fields #

FieldTypeDescription
idstringThe id of the term.
namestringThe term.
posstringPart of speech, free text. Default Noun.
statusstringapproved, review (default for a new term) or notranslate.
definitionstringThe definition.
examplestringAn example.
forbiddenlist of stringWords that must not be used.
relatedlist of stringRelated terms.
translationslist of objectOne per language: code, value, state (approved, pending, missing, conflict or unchanged), annotation and conflict.
projectIdslist of stringProjects the term applies to.
addedBystring or nullWho added it.
addedMinutesinteger or nullMinutes since it was added.
editedBystring or nullWho last changed it.
editedMinutesinteger or nullMinutes since it changed.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe term does not exist in your organisation, or termId is not a UUID.
422invalid_requestlanguage is not a language code, or value is not a string.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.

Notes #

Curators: organisation owners and admins, and anyone who is a reviewer or manager of a project.