Adresár dokumentov

Glossary API

Odstrániť glosár

POST/v1/glossary/delete

Odstrániť glosár podľa ID.

Úplná adresa
https://dltranslator.com/api/v1/glossary/delete
Autentifikácia
Je potrebné poskytnúť API Key v hlavičke požiadavky Authorization
Content-Type
application/json
Chybný formát
{ "error": "Invalid API key." }

Upozornenia

Operácia odstránenia ovplyvňuje iba glosár pod aktuálnym API účtom.

Príklad

curl
1curl -X POST 'https://dltranslator.com/api/v1/glossary/delete' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "glossaryId": "[string]"
6}'

Parametre požiadavky

ParametreTypPredvolenéPopisPríklad
*glossaryIdString-

ID glosára

-

Odpoveď

ParametreTypPredvolenéPopisPríklad
successBoolean-

Či bolo odstránenie úspešné

-

Bežné chyby

401 Missing API key.

The Authorization request header is required.

401 Invalid API key.

The API key does not exist, has been deleted, or is no longer valid.