Skip to main content
POST
Duplicate a workflow

Authorizations

next-auth.session-token
string
cookie
required

NextAuth session JWT cookie. Development: often next-auth.session-token. Production (HTTPS): often __Secure-next-auth.session-token. Send the cookie your browser receives after sign-in.

Path Parameters

workflowId
string<cuid2>
required

Workflow identifier.

Body

application/json
name
string

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

Required string length: 1 - 120

Response

Workflow duplicated successfully

data
object
required

Full workflow shape returned by detail, create, update, duplicate, and lifecycle endpoints: the list-item fields plus the complete definition document.