Skip to main content
POST
/
batches
/
{batch_id}
/
cancel
Cancel batch
curl --request POST \
  --url https://api.anyapi.ai/v1/batches/{batch_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "batch",
  "status": "cancelled"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Path Parameters

batch_id
string
required

The ID of the batch to cancel

Response

Batch cancelled successfully

id
string

Batch ID

object
string
Example:

"batch"

status
string
Example:

"cancelled"