Glossary terms repeated

What the GlossaryTermsRepeated error (422 Unprocessable Content) means, the fields it carries, and the endpoints that return it.

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/glossary-terms-repeated. See Errors and status codes for the shape every error shares.

Each term can appear only once per request. Repeated: "<text>" (<locale>).

Fields #

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
idsstring[]
termsobject[]
terms[].localestring
terms[].textstring

Example #

json
{
  "detail": "Each term can appear only once per request. Repeated: \"<text>\" (<locale>).",
  "ids": [
    "ids_1"
  ],
  "terms": [
    {
      "locale": "<locale>",
      "text": "<text>"
    }
  ],
  "type": "https://lingo.dev/docs/api/errors/glossary-terms-repeated",
  "status": 422,
  "title": "Glossary terms repeated"
}

Returned by #

  • POST /v2/glossaries/{glossaryId}/terms/create-many
  • POST /v2/glossaries/{glossaryId}/terms/delete-many
  • POST /v2/glossaries/{glossaryId}/terms/update-many