Glossar-API
Glossar löschen
POST/v1/glossary/delete
Ein Glossar anhand der ID löschen.
- Vollständige Adresse
- https://otranslator.com/api/v1/glossary/delete
- Authentifizierung
- Der API Key muss im Authorization-Anfrage-Header übermittelt werden
- Content-Type
- application/json
- Falsches Format
- { "error": "Invalid API key." }
Hinweise
Der Löschvorgang wirkt sich nur auf das Glossar unter dem aktuellen API-Konto aus.
Beispiel
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}'Anfrageparameter
| Parameter | Typ | Standard | Beschreibung | Beispiel |
|---|---|---|---|---|
| *glossaryId | String | - | Glossar-ID | - |
Antwort
| Parameter | Typ | Standard | Beschreibung | Beispiel |
|---|---|---|---|---|
| success | Boolean | - | Ob das Löschen erfolgreich war | - |
Häufige Fehler
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.