Glossary terms repeated
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.
| Field | Type |
|---|---|
ids | string[] |
terms | object[] |
terms[].locale | string |
terms[].text | string |
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-manyPOST /v2/glossaries/{glossaryId}/terms/delete-manyPOST /v2/glossaries/{glossaryId}/terms/update-many