runs

Purge queued runs

Cancels every run in the environment that is in queued status, or only those of agent_name.

Purged runs get the error Purged from queue by user. Scheduled and running runs are not affected.

Required permission: runs.queue.manage.

post/v1/projects/{project_id}/environments/{environment_id}/purge-queue

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

environment_id, string uuid required

Environment ID from GET /environments.

Request body

PurgeQueueRequest required

Which queued runs to cancel.

agent_name, string nullable

Only cancel queued runs of this agent; omit to cancel every queued run in the environment.

Response

Successful Response

PublicPurgeQueueResponse required
ok, boolean required

Whether the operation succeeded.

purged_count, integer required

Number of queued runs that were cancelled.

Changes

No recorded changes to this operation across all 17 revisions of this API.