---
title: "Create and execute a DAG-run from DAG"
method: POST
path: "/dags/{fileName}/start"
tags: ["dags"]
---

# Create and execute a DAG-run from DAG

`POST /dags/{fileName}/start`

Creates a DAG-run from the DAG definition and starts its execution with optional parameters

## Path parameters

- `fileName` string, regex, required — Name of the DAG file

## Query parameters

- `remoteNode` string

## Request body

- object
  - `params` string — Parameters to pass to the DAG-run in JSON format
  - `dagRunId` string — Optional ID for the DAG-run, if not provided a new one will be generated
  - `dagName` string — Optional DAG name override to use for the created dag-run
  - `profile` string — Runtime profile override. Empty string means no profile.
  - `singleton` boolean — If true, prevent starting if DAG is already running (returns 409 conflict)
  - `noReuse` boolean — If true, execute eligible build steps without reusing prior materializations
  - `labels` string[] — 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.
  - `tags` string[] — 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.

## Response `200`

A successful response

- object
  - `dagRunId` string, required — Unique identifier for the DAG-run. The special value 'latest' can be used to reference the most recent DAG-run.

## Other responses

- `400` — Invalid request parameters or labels
- `409` — DAG is already running (singleton mode) or dagRunId already exists
- `default` — Generic error response

---

[API](https://skmtc.net/dagucloud/apis/dagu.md) · [All operations](https://skmtc.net/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/93cc41f2018a/schema)
