Skip to main content

Endpoint

POST https://qingbo.dev/v1/tasks/{task_id}/cancel
Cancel a task in queued status. Quota is automatically refunded.
Only tasks in queued status can be cancelled. Tasks in processing status have already started and cannot be cancelled.

Response

{
  "task_id": "task_xxx",
  "status": "cancelled",
  "refunded": true,
  "refunded_quota": 50000
}
FieldDescription
refundedWhether quota has been refunded
refunded_quotaAmount of quota refunded