Manual
CLI
API
Log in Get started free

Update a glossary term

Changes a term. Send only what changes.

Changes a term. Send only what changes.

HTTP
PATCH /glossary/{termId}

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

Path parameters #

ParameterDescription
termIdThe id of the term.

Request body #

JSON.

FieldTypeRequiredDescription
posstringnoAt most 40 characters.
definitionstringnoAt most 2000 characters.
examplestringnoAt most 1000 characters.
forbiddenlist of stringnoReplaces the list.
relatedlist of stringnoReplaces the list.
statusstringnoapproved, review or notranslate. Curators only.
projectIdslist of stringnoReplaces the projects the term applies to.
JSON
{ "status": "approved" }

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.
403forbiddenstatus is sent and you are not a curator. Curators: organisation owners and admins, and anyone who is a reviewer or manager of a project.
422invalid_requestA text is too long, or status is not allowed.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.