job

Manage queue operations

Cancel specific PENDING jobs by ID or clear all pending jobs in the queue. Note: This endpoint only affects pending jobs. To cancel running jobs, use /api/interrupt.

post/api/queue

Request

Request body

deletestring[]

Array of PENDING job IDs to cancel

clearboolean

If true, clear all pending jobs from the queue

Response

Success

deletedstring[]

Array of job IDs that were successfully cancelled

clearedboolean

Whether the queue was cleared

Changes

No recorded changes to this operation across all 1 revision of this API.