---
title: "Create Workflow Draft"
method: POST
path: "/api/v1/workflow/{workflow_id}/create-draft"
tags: ["main"]
---

# Create Workflow Draft

`POST /api/v1/workflow/{workflow_id}/create-draft`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/workflow/{workflow_id}/create-draft`
- Auth: none declared

Create a draft version from the current published version.

If a draft already exists, returns the existing draft.

## Path parameters

- `workflow_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Response `200`

Successful Response

- WorkflowVersionResponse
  - `id` integer, required
  - `version_number` integer, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `published_at` string, date-time, nullable
  - `version_name` string, nullable
  - `change_description` string, nullable
  - `workflow_json` object, required
  - `workflow_configurations` object, nullable
  - `template_context_variables` object, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/workflow/:workflow_id/create-draft/post.md)

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) - [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dograh/apis/dograh-api/revisions/faa00cf76fcb?raw)
