Cancel a batch.
cURL
curl --request POST \ --url https://api.anyapi.ai/v1/batches/{batch_id}/cancel \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "object": "batch", "status": "cancelled" }
Bearer token authentication. Get your API key from the dashboard.
The ID of the batch to cancel
Batch cancelled successfully
Batch ID
"batch"
"cancelled"