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.
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
workflowId*string
Response Body
application/json
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" }}Was this page helpful?