API Glosar
Șterge glosar
POST/v1/glossary/delete
Șterge un glosar după ID.
- Adresă completă
- https://otranslator.com/api/v1/glossary/delete
- Autentificare
- Este necesar să transmiteți API Key în headerul de cerere Authorization
- Content-Type
- application/json
- Format greșit
- { "error": "Invalid API key." }
Precauții
Operațiunea de ștergere afectează doar glosarul de sub contul API curent.
Exemplu
curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/delete' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "glossaryId": "[string]"
6}'Parametrii de Cerere
| Parametri | Tip | Implicit | Descriere | Exemplu |
|---|---|---|---|---|
| *glossaryId | String | - | ID glosar | - |
Răspuns
| Parametri | Tip | Implicit | Descriere | Exemplu |
|---|---|---|---|---|
| success | Boolean | - | Dacă ștergerea s-a realizat cu succes | - |
Erori frecvente
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.