---
title: "Clone a Workflow"
method: POST
path: "/v1/workflows/{id}/clone"
tags: ["Workflows API"]
---

# Clone a Workflow

`POST /v1/workflows/{id}/clone`

Use this endpoint to create a copy of an existing workflow with a new name. The cloned workflow is created in `draft` status.

## Path parameters

- `id` string, uuid, required

## Request body

- CloneWorkflowInput
  - `name` string, required — Name for the cloned workflow. Must be unique.

## Response `201`

Indicates that the resource was successfully created and the operation was completed as expected.

- WorkflowCreateOutput
  - `createdAt` string, date-time — Timestamp when the workflow was created.
  - `status` string — Initial status of the workflow (always `draft` on creation).
  - `version` string — Version of the workflow definition.
  - `workflowId` string, uuid — Unique identifier of the created workflow.

## Other responses

- `400` — Indicates that the request was malformed or contained invalid parameters.
- `404` — Indicates that the requested resource could not be found.
- `409` — Indicates that the request could not be completed due to a conflict with the current state of the resource.
- `500` — Indicates an unexpected internal error. If this persists, please contact support.

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
