v16

latestOpenAPI 3.1.1raw.githubusercontent.com2026-08-0124102197.4 KB
V3 Workflows

Duplicate a workflow

Creates a new draft workflow by copying an existing workflow's definition, name (or the provided override), and description. The duplicate receives its own id and timestamps and starts with empty run and version history; the source workflow is unchanged. Archived workflows can be duplicated (the copy starts as a normal draft).

post/api/v3/workflows/{workflowId}/duplicate

Path parameters

workflowIdstring cuid2 required

Workflow identifier.

Request body

namestring

Optional name for the duplicate. If omitted, the server chooses a non-conflicting copy name.

Response

Workflow duplicated successfully