Replaces or creates a dictionary in the glossary with the specified entries. Run in API Explorer
Body
The dictionary to insert into (or overwrite in) the multilingual glossary.
-
The language in which the source texts in the glossary are specified.
Values are
ar,bg,cs,da,de,el,en,es,et,fi,fr,he,hu,id,it,ja,ko,lt,lv,nb,nl,pl,pt,ro,ru,sk,sl,sv,th,tr,uk,vi, orzh. -
The language in which the target texts in the glossary are specified.
Values are
ar,bg,cs,da,de,el,en,es,et,fi,fr,he,hu,id,it,ja,ko,lt,lv,nb,nl,pl,pt,ro,ru,sk,sl,sv,th,tr,uk,vi, orzh. -
The entries of the glossary. The entries have to be specified in the format provided by the
entries_formatparameter. -
The format in which the glossary entries are provided. Formats currently available:
tsv(default) - tab-separated valuescsv- comma-separated values
See Supported Glossary Formats for details about each format.
Values are
tsvorcsv. Default value istsv.
Body
The dictionary to insert into (or overwrite in) the multilingual glossary.
-
The language in which the source texts in the glossary are specified.
Values are
ar,bg,cs,da,de,el,en,es,et,fi,fr,he,hu,id,it,ja,ko,lt,lv,nb,nl,pl,pt,ro,ru,sk,sl,sv,th,tr,uk,vi, orzh. -
The language in which the target texts in the glossary are specified.
Values are
ar,bg,cs,da,de,el,en,es,et,fi,fr,he,hu,id,it,ja,ko,lt,lv,nb,nl,pl,pt,ro,ru,sk,sl,sv,th,tr,uk,vi, orzh. -
The entries of the glossary. The entries have to be specified in the format provided by the
entries_formatparameter. -
The format in which the glossary entries are provided. Formats currently available:
tsv(default) - tab-separated valuescsv- comma-separated values
See Supported Glossary Formats for details about each format.
Values are
tsvorcsv. Default value istsv.
Responses
-
JSON object containing the dictionary 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.
curl \
--request PUT 'https://api.deepl.com/v3/glossaries/{glossary_id}/dictionaries' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"source_lang":"en","target_lang":"de","entries":"Hello\tGuten Tag","entries_format":"tsv"}'
curl \
--request PUT 'https://api.deepl.com/v3/glossaries/{glossary_id}/dictionaries' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'source_lang=en&target_lang=de&entries=Hello%09Guten+Tag&entries_format=tsv'
{
"source_lang": "en",
"target_lang": "de",
"entries": "Hello\tGuten Tag",
"entries_format": "tsv"
}
{
"source_lang": "EN",
"target_lang": "DE",
"entry_count": 1
}
{
"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)"
}