---
title: "Update DAG spec"
method: PUT
path: "/dags/{fileName}/spec"
tags: ["dags"]
---

# Update DAG spec

`PUT /dags/{fileName}/spec`

Modifies the YAML specification of a DAG definition

## Path parameters

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

## Query parameters

- `remoteNode` string

## Request body

- object
  - `spec` string, required — The new DAG spec in YAML format

## Response `200`

A successful response

- object
  - `errors` string[], required — List of errors in the spec

## 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/93cc41f2018a/schema)
