Edit glossary details Run in API Explorer
Ask AI
Edit glossary details, such as name or a dictionary for a source and target language.
application/json
Responses
-
JSON object containing the glossary meta-information.
-
Bad request. Please check error message and your parameters.
-
Authorization failed. Please supply a valid
DeepL-Auth-Keyvia theAuthorizationheader. -
Forbidden. The access to the requested resource is denied, because of insufficient access rights.
-
The requested resource could not be found.
-
The request size exceeds the limit.
-
Too many requests. Please wait and resend your request.
-
Quota exceeded. The glossary creation limit has been reached.
-
Internal error.
-
Resource currently unavailable. Try again later.
-
Too many requests. Please wait and resend your request.
PATCH
/v3/glossaries/{glossary_id}
cURL (application/json)
curl \
--request PATCH 'https://api.deepl.com/v3/glossaries/{glossary_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"My Glossary","dictionaries":[{"source_lang":"en","target_lang":"de","entries":"Hello\tGuten Tag","entries_format":"tsv"}]}'
curl \
--request PATCH 'https://api.deepl.com/v3/glossaries/{glossary_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'name=def3a26b-3e84-45b3-84ae-0c0aaf3525f7&dictionaries=%7B%22source_lang%22+%3D%3E+%22en%22%2C+%22target_lang%22+%3D%3E+%22de%22%2C+%22entries%22+%3D%3E+%22Hello%5CtGuten+Tag%22%2C+%22entries_format%22+%3D%3E+%22tsv%22%7D'
Request example
{
"name": "My Glossary",
"dictionaries": [
{
"source_lang": "en",
"target_lang": "de",
"entries": "Hello\tGuten Tag",
"entries_format": "tsv"
}
]
}
Response examples (200)
{
"glossary_id": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7",
"name": "My Glossary",
"dictionaries": [
{
"source_lang": "EN",
"target_lang": "DE",
"creation_time": "2021-08-03T14:16:18.329Z",
"entry_count": 1
},
{
"source_lang": "DE",
"target_lang": "EN",
"creation_time": "2021-08-03T14:16:18.429Z",
"entry_count": 2
}
]
}
Response examples (400)
{
"message": "Invalid glossary entries provided",
"detail": "Key with the index 1 (starting at position 13) duplicates key with the index 0 (starting at position 0)"
}