---
title: "Approve a waiting step"
method: POST
path: "/dag-runs/{name}/{dagRunId}/steps/{stepName}/approve"
tags: ["dag-runs"]
---

# Approve a waiting step

`POST /dag-runs/{name}/{dagRunId}/steps/{stepName}/approve`

Approves a step that is in Waiting status, optionally providing input parameters that will be available as environment variables in subsequent steps

## 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.
- `stepName` string, required

## Query parameters

- `remoteNode` string

## Request body

- ApproveStepRequest — Request body for approving a waiting step
  - `inputs` object — Key-value parameters to provide. These will be available as environment variables in subsequent steps.

## Response `200`

Step approved successfully

- ApproveStepResponse — Response after approving a waiting step
  - `dagRunId` string, required — The DAG run ID
  - `stepName` string, required — The approved step name
  - `resumed` boolean, required — Whether the DAG run was re-enqueued for execution

## Other responses

- `400` — Step is not in Waiting status or required inputs missing
- `404` — DAG-run or step not found
- `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/518ca433b4f2/schema)
