cURL
curl --request DELETE \ --url https://api.trillet.ai/v1/api/batch-calls/{batchId} \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
{ "batchId": "<string>", "status": "<string>", "message": "<string>", "details": { "completedCalls": 123, "failedCalls": 123, "cancelledCalls": 123, "totalCalls": 123 }, "error": "<string>", "id": "<string>" }
Cancel a batch call operation and stop any remaining calls from being processed
Show Details Object
curl -X DELETE "https://api.trillet.ai/v1/batch-calls/batch_7891011121314" \ -H "x-api-key: YOUR_API_KEY" \ -H "x-workspace-id: YOUR_WORKSPACE_ID"
{ "batchId": "batch_7891011121314", "status": "cancelled", "message": "Batch cancelled successfully", "details": { "completedCalls": 95, "failedCalls": 5, "cancelledCalls": 50, "totalCalls": 150 } }
404
500