API reference · Schema
ServerlessQueuePurge
objectstringrequiredAlways `serverless_queue_purge`: the type of this object
One of
serverless_queue_purgeendpoint_idstringrequiredID of the endpoint
canceledintegerrequiredQueued jobs canceled by this purge (0 when the queue was empty)
Example
{
"object": "serverless_queue_purge",
"endpoint_id": "string",
"canceled": 1
}Used by
- Cancel every queued job of the endpoint (running jobs continue)
POST /v1/serverless/endpoints/{endpoint_id}/purge-queue