Tasks - cancel a task
DELETE/api/v1/tasks/:taskId
Cancels a waiting or queued task. Has no effect on completed/failed tasks.
Request
Responses
- 200
- 404
Task cancelled
Not found
Reference
DELETE /api/v1/tasks/{taskId}
Cancels a waiting or queued task. Has no effect on completed/failed tasks.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
taskId | path | string | yes | Task ID |
Responses
| Status | Description |
|---|---|
200 | Task cancelled |
404 | Not found |
Example request
curl -X DELETE "https://api.bitbybit.dev/api/v1/tasks/{taskId}" \
-H "x-api-key: YOUR_API_KEY"
Authentication: send your key in the x-api-key header. The full machine-readable specification is at openapi.json.