v36

OpenAPI 3.1.0raw.githubusercontent.com2026-08-0187270483.0 KB
Workflows

Copy a Workflow

Copy a workflow to a new name.

Forks the source workflow's current version into a brand-new workflow at versionNum: 1. The full node graph and edges are carried over, but the functions the copied nodes reference are shared, not duplicated — both workflows now point at the same functions.

Useful for forking a production workflow to test a topology change without disturbing the live caller.

post/v3/workflows/copy

Request body

sourceWorkflowNamestring required

Name of the source workflow to copy from.

sourceWorkflowVersionNuminteger

Optional version number of the source workflow to copy. If not provided, copies the current version.

targetEnvironmentstring

Optional target environment name. If provided, copies the workflow to a different environment. When copying to a different environment, all functions used in the workflow will also be copied.

targetWorkflowNamestring required

Name for the new copied workflow. Must be unique within the target environment.

targetDisplayNamestring

Optional display name for the copied workflow. If not provided, uses the source workflow's display name with " (Copy)" appended.

tagsstring[]

Optional tags for the copied workflow. If not provided, uses the source workflow's tags.

Response

The request has succeeded.

environmentstring

The environment the workflow was copied to.

errorstring

Error message if the workflow copy failed.