API Tugas Terjemahan
Hapus Tugas Terjemahan
POST/v1/translation/delete
Hapus tugas terjemahan berdasarkan ID-nya.
- Alamat lengkap
- https://dltranslator.com/api/v1/translation/delete
- Autentikasi
- Perlu menyertakan API Key di header permintaan Authorization
- Content-Type
- application/json
- Format error
- { "error": "Invalid API key." }
Hal-hal yang Perlu Diperhatikan
Setelah dihapus, tugas akan ditandai sebagai dihapus, dan layanan terjemahan akan dipanggil untuk membersihkan sumber daya yang terkait dengan tugas.
Contoh
curl
1curl -X POST 'https://dltranslator.com/api/v1/translation/delete' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'Parameter Permintaan
| Parameter | Jenis | Bawaan | Deskripsi | Contoh |
|---|---|---|---|---|
| *taskId | String | - | ID tugas penerjemahan | - |
Respons
| Parameter | Jenis | Bawaan | Deskripsi | Contoh |
|---|---|---|---|---|
| success | Boolean | - | Apakah penghapusan berhasil | - |
Kesalahan Umum
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.