workflows
Duplicate a workflow
Create an independent copy of a workflow's graph, name, description, and account binding. The copy is created in draft status with fresh execution counters and a new id — execution history is NOT copied. Useful for branching off a known-good workflow before making experimental edits.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
workflowIdstring
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.workflows.duplicateWorkflow({ path: { workflowId: 'workflow_abc123', },});console.log(data);{
"success": true,
"workflow": {
"id": "string",
"name": "string",
"description": "string",
"status": "draft",
"platform": "string",
"accountId": "string",
"profileId": "string",
"entryNodeId": "string",
"nodeCount": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}