v1

latestOpenAPI 3.0.22026-07-2610288167.4 KB
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 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