---
title: "Changes to Create a new DAG definition"
method: POST
path: "/dags"
---

# Changes to Create a new DAG definition

`POST /dags`

> Every recorded change to this operation, newest first.
> 208 revisions in range; 1 not diffed.

## Timeline

Changed in 4 of 208 revisions.

- **2026-07-23** (v1) `75b8e91aaf57`: 6 warning
- **2026-05-24** (v1) `8a2d5d3e9608`: 2 warning
- **2026-02-04** (v1) `a047d6ba27d5`: 2 breaking, 12 warning, 6 info
- **2025-05-29** (v1) `3fbb7a91ab69`: 2 warning

## Changes

- **2026-07-23** (v1) `75b8e91aaf57`: 6 warning
  - added the new `conflict` enum value to the `code` response property for the response status `400`
  - added the new `conflict` enum value to the `code` response property for the response status `default`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `400`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `default`
  - added the new `payload_too_large` enum value to the `code` response property for the response status `400`
  - added the new `payload_too_large` enum value to the `code` response property for the response status `default`
- **2026-05-24** (v1) `8a2d5d3e9608`: 2 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `400`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-02-04** (v1) `a047d6ba27d5`: 2 breaking, 12 warning, 6 info
  - added the new required request property `name`
  - removed the required property `DagID` from the response with the `201` status
  - removed the request property `action`
  - removed the request property `value`
  - added the new `auth.forbidden` enum value to the `code` response property for the response status `400`
  - added the new `auth.forbidden` enum value to the `code` response property for the response status `default`
  - added the new `auth.token_invalid` enum value to the `code` response property for the response status `400`
  - added the new `auth.token_invalid` enum value to the `code` response property for the response status `default`
  - added the new `auth.unauthorized` enum value to the `code` response property for the response status `400`
  - added the new `auth.unauthorized` enum value to the `code` response property for the response status `default`
  - added the new `max_run_reached` enum value to the `code` response property for the response status `400`
  - added the new `max_run_reached` enum value to the `code` response property for the response status `default`
  - added the new `timeout` enum value to the `code` response property for the response status `400`
  - added the new `timeout` enum value to the `code` response property for the response status `default`
  - api operation id `createDAG` removed and replaced with `createNewDAG`
  - added the new optional `query` request parameter `remoteNode`
  - added the new optional request property `spec`
  - removed the `already_running` enum value from the `code` response property for the response status `400`
  - removed the `already_running` enum value from the `code` response property for the response status `default`
  - added the required property `name` to the response with the `201` status
- **2025-05-29** (v1) `3fbb7a91ab69`: 2 warning
  - added the new `forbidden` enum value to the `code` response property for the response status `400`
  - added the new `forbidden` enum value to the `code` response property for the response status `default`

---

[Operation](https://skmtc.dev/dagucloud/apis/dagu/docs/dags/post.md) - [API](https://skmtc.dev/dagucloud/apis/dagu.md) - [Page](https://skmtc.dev/dagucloud/apis/dagu/changes/dags/post)
