Übersetzungsaufgaben-API
Übersetzungsaufgabe löschen
POST/v1/translation/delete
Eine Übersetzungsaufgabe anhand ihrer ID löschen.
- Vollständige Adresse
- https://otranslator.com/api/v1/translation/delete
- Authentifizierung
- Der API Key muss im Authorization-Anfrage-Header übermittelt werden
- Content-Type
- application/json
- Falsches Format
- { "error": "Invalid API key." }
Hinweise
Nach dem Löschen wird die Aufgabe als gelöscht markiert und der Übersetzungsdienst ruft die Bereinigung aufgabenbezogener Ressourcen auf.
Beispiel
curl
1curl -X POST 'https://otranslator.com/api/v1/translation/delete' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'Anfrageparameter
| Parameter | Typ | Standard | Beschreibung | Beispiel |
|---|---|---|---|---|
| *taskId | String | - | Übersetzungsauftrags-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.
400 Missing required parameter: taskId.
Provide the taskId returned by the create translation task API.
404 Task not found.
The task does not exist, has been deleted, does not belong to the current API account, or was not created through the API.