---
title: "Manually update a step's execution status"
method: PATCH
path: "/dag-runs/{name}/{dagRunId}/steps/{stepName}/status"
tags: ["dag-runs"]
---

# Manually update a step's execution status

`PATCH /dag-runs/{name}/{dagRunId}/steps/{stepName}/status`

Changes the status of a specific step after the DAG-run is no longer active

## 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

- object
  - `status` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9, required — Numeric status code indicating current node state: 0: "Not started" 1: "Running" 2: "Failed" 3: "Aborted" 4: "Success" 5: "Skipped" 6: "Partial Success" 7: "Waiting for manual action" 8: "Rejected" 9: "Retrying"

## Response `200`

A successful response

## Other responses

- `400` — Invalid request
- `404` — DAGRun 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/93cc41f2018a/schema)
