Re-run the unique tasks behind the selector's runs
const url = 'http://localhost:9477/api/runs/bulk/rerun';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"except_ids":["example"],"filter":{"created_after":"2026-04-15T12:00:00Z","created_before":"2026-04-15T12:00:00Z","exit_code_max":1,"exit_code_min":1,"retries_only":true,"search":"example","status":"example","task_name":"example","triggered_by":"example"},"ids":["example"],"match_all":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9477/api/runs/bulk/rerun \ --header 'Content-Type: application/json' \ --data '{ "except_ids": [ "example" ], "filter": { "created_after": "2026-04-15T12:00:00Z", "created_before": "2026-04-15T12:00:00Z", "exit_code_max": 1, "exit_code_min": 1, "retries_only": true, "search": "example", "status": "example", "task_name": "example", "triggered_by": "example" }, "ids": [ "example" ], "match_all": true }'Request Body required
Section titled “Request Body required ”object
A URL to the JSON Schema for this object.
IDs to exclude when MatchAll is true
Filter to apply when MatchAll is true
object
Only runs created at or after this time
Only runs created at or before this time
Only runs whose exit code is <= this (inclusive)
Only runs whose exit code is >= this (inclusive)
Only runs that are a retry (retry_attempt > 0)
Search query against task_name / id
Comma-separated run statuses (phase or end reason); a run matches any listed value
Filter by task name
Filter by what triggered the run (cron/api/cloud/service/startup)
Explicit run IDs to select when MatchAll is false
When true, selects every run matching Filter except those listed in ExceptIDs
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
New runs spawned by the rerun, keyed by task
object
Example
{ "$schema": "http://localhost:9477/schemas/BulkRerunBody.json"}default
Section titled “default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
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"}