v51

latestOpenAPI 3.0.0GPL-3.0raw.githubusercontent.com2026-08-01199241439.9 KB
dag-runs

Enqueue a DAG-run from inline spec

Creates a DAG-run directly from a provided DAG specification (YAML) and enqueues it for execution.

This endpoint does not require a pre-existing DAG file; the supplied spec is parsed and validated similarly to /dags/validate, and the run is persisted to the queue if valid.

post/dag-runs/enqueue

Query parameters

remoteNodestring

name of the remote node

Request body

specstring required

DAG specification in YAML format

namestring

Optional name to use when the spec omits a name

profilestring

Runtime profile override. Empty string means no profile.

paramsstring

Parameters to persist with the queued DAG-run in JSON format

dagRunIdstring

Optional ID for the DAG-run; if omitted a new one will be generated

queuestring

Override the queue to use for this DAG-run

singletonboolean

If true, prevent enqueuing if DAG is already running or queued (returns 409 conflict)

labelsstring[]

Additional labels to apply to the DAG-run (format: key=value or key-only). Merged with labels defined in the DAG spec. Mutually exclusive with deprecated tags; the server returns HTTP 400 if both are set.

tagsstring[]

Deprecated alias for Labels. Additional labels to apply to the DAG-run (format: key=value or key-only). Merged with labels defined in the DAG spec. Mutually exclusive with labels; the server returns HTTP 400 if both are set.

Example request

{
  "dagRunId": "latest"
}

Response

DAG-run successfully enqueued

dagRunIdstring required

Unique identifier for the DAG-run. The special value 'latest' can be used to reference the most recent DAG-run.

Example response

{
  "dagRunId": "latest"
}