Skip to content

Stop every running run matched by the selector

POST
/api/runs/bulk/stop
curl --request POST \
--url http://localhost:9477/api/runs/bulk/stop \
--header 'Content-Type: application/json' \
--data '{ "exceptIds": [ "example" ], "filter": { "createdAfter": "2026-04-15T12:00:00Z", "createdBefore": "2026-04-15T12:00:00Z", "exitCodeMax": 1, "exitCodeMin": 1, "retriesOnly": true, "search": "example", "status": "example", "taskName": "example", "triggeredBy": "example" }, "ids": [ "example" ], "matchAll": true }'
Media typeapplication/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
exceptIds

IDs to exclude when MatchAll is true

Array<string> | null
filter

Filter to apply when MatchAll is true

object
createdAfter

Only runs created at or after this time

string format: date-time
createdBefore

Only runs created at or before this time

string format: date-time
exitCodeMax

Only runs whose exit code is <= this (inclusive)

integer format: int64
exitCodeMin

Only runs whose exit code is >= this (inclusive)

integer format: int64
retriesOnly

Only runs that are a retry (retry_attempt > 0)

boolean
search

Search query against task_name / id

string
status

Comma-separated run statuses (phase or end reason); a run matches any listed value

string
taskName

Filter by task name

string
triggeredBy

Filter by what triggered the run (cron/api/cloud/service/startup)

string
ids

Explicit run IDs to select when MatchAll is false

Array<string> | null
matchAll

When true, selects every run matching Filter except those listed in ExceptIDs

boolean

OK

Media typeapplication/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
affected
required

Number of rows the operation touched

integer format: int64
Example
{
"$schema": "http://localhost:9477/schemas/BulkAffectedBody.json"
}

Error

Media typeapplication/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank
Example
{
"$schema": "http://localhost:9477/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}