Skip to content

Generate a report from a definition now. Returns the run row immediately; it progresses over SSE.

POST
/api/v1/reports/definitions/{id}/run
curl --request POST \
--url https://example.com/api/v1/reports/definitions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/run \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

Report definition id

The freshly created run, still generating

Media typeapplication/json

A run row for the saved-reports list (without the heavy result_* payloads).

object
created_by
string | null
created_ms
required
integer format: int64
definition_id
string | null format: uuid
error
string | null
finished_ms
integer | null format: int64
id
required
string format: uuid
name
required
string
pct
required
integer format: int32
range_from_ms
integer | null format: int64
range_to_ms
integer | null format: int64
section_count
required
integer format: int32
started_ms
integer | null format: int64
state
required

Lifecycle of one report run.

string
Allowed values: queued running succeeded failed unknown
trigger
required

What started a run.

string
Allowed values: manual scheduled unknown
Example
{
"state": "queued",
"trigger": "manual"
}

No valid bearer token

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageConfig

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

No such definition

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Skeleton mode: no write side

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}