Skip to content

Restore soft-deleted runs matching the selector

POST
/api/runs/bulk/restore
curl --request POST \
--url http://localhost:9477/api/runs/bulk/restore \
--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 }'
Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
except_ids

IDs to exclude when MatchAll is true

array | null
filter

Filter to apply when MatchAll is true

object
created_after

Only runs created at or after this time

string format: date-time
created_before

Only runs created at or before this time

string format: date-time
exit_code_max

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

integer format: int64
exit_code_min

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

integer format: int64
retries_only

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
task_name

Filter by task name

string
triggered_by

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

string
ids

Explicit run IDs to select when MatchAll is false

array | null
match_all

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

boolean

OK

Media type application/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 type application/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 | 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"
}