---
title: "Retry DAG-run execution"
method: POST
path: "/dag-runs/{name}/{dagRunId}/retry"
tags: ["dag-runs"]
---

# Retry DAG-run execution

`POST /dag-runs/{name}/{dagRunId}/retry`

Creates a new DAG-run based on a previous execution

## Path parameters

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

## Query parameters

- `remoteNode` string

## Request body

- object
  - `dagRunId` string, required — ID of the DAG-run to retry
  - `stepName` string — Optional. If provided, only this step will be retried.
  - `subDAGRunId` string — Optional. Persisted child DAG-run containing the step. Requires stepName; the path and dagRunId remain the root DAG-run.

## Response `200`

A successful response

## Other responses

- `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/f8982f33e540/schema)
