---
title: "Toggle DAG suspension state"
method: POST
path: "/dags/{fileName}/suspend"
tags: ["dags"]
---

# Toggle DAG suspension state

`POST /dags/{fileName}/suspend`

Controls whether the scheduler should create DAG-runs from this DAG according to its defined cron schedule

## Path parameters

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

## Query parameters

- `remoteNode` string

## Request body

- object
  - `suspend` boolean, required — Suspend status to set for the DAG

## Response `200`

A successful response

## Other responses

- `404` — DAG 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)
