批量删除指定的元素级检索任务。
请求参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
taskIDs | array | ✅ | [] | 要删除的任务 ID 列表,至少 1 个 |
cURLPython
curl -X POST "https://api.trohub.com/v1/infringement/tasks/batch-delete" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"taskIDs":["h0d0a0b3-f09c-4824-a745-0d29759c253h","i0e0b0b3-f09c-4824-a745-0d29759c253i"]}'import requests
url = "https://api.trohub.com/v1/infringement/tasks/batch-delete"
headers = {"X-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"}
payload = {"taskIDs": ["h0d0a0b3-f09c-4824-a745-0d29759c253h", "i0e0b0b3-f09c-4824-a745-0d29759c253i"]}
response = requests.post(url, headers=headers, json=payload)
print(response.json()) 🔧 API 沙盒测试 POST
/infringement/tasks/batch-delete 响应示例
{
"success": true,
"message": "Tasks deleted successfully",
"data": null
}