Skip to main content
POST
/
workflows
/
duplicate
Duplicate workflow
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/duplicate \
  --header 'Content-Type: application/json' \
  --data '{
  "workflowId": "1"
}'
{
  "id": "<string>",
  "name": "<string>",
  "isAuthenticationRequired": true,
  "autoSaveEnabled": true,
  "timeoutMs": 1800000,
  "shouldPauseOnError": false,
  "shouldSelfHeal": true,
  "shouldSaveResultFile": false,
  "maxConcurrentSessions": 10,
  "webhookUrls": [
    "<string>"
  ],
  "blocks": [
    "<any>"
  ],
  "useProxy": false,
  "operatingSystem": "Windows",
  "knowledgeBase": "Company information and guidelines...",
  "useLoginDetection": true
}

Body

application/json
workflowId
string
required

ID of the workflow to duplicate

Example:

"1"

Response

Workflow duplicated successfully

id
string
required

ID of the workflow

name
string
required

Name of the workflow

isAuthenticationRequired
boolean
required

Whether authentication is required for this workflow

autoSaveEnabled
boolean
required

Whether auto-save is enabled for this workflow

timeoutMs
integer | null

Timeout in milliseconds for workflow execution

Required range: x > 0
Example:

1800000

shouldPauseOnError
boolean

Whether to pause workflow execution on error

Example:

false

shouldSelfHeal
boolean

Whether to automatically clean up cache when workflow execution fails

Example:

true

shouldSaveResultFile
boolean

Whether to save result files for this workflow

Example:

false

maxConcurrentSessions
integer | null

Maximum concurrent executions for this workflow

Required range: x > 0
Example:

10

webhookUrls
string<uri>[]

List of webhook URLs for this workflow

blocks
array

Sequence of workflow block summaries

  • Login
  • Form Block
  • Mouse Block
  • Input
  • Date Input
  • Extract
  • ParseDocument
  • Extract from Input
  • QueryKnowledgeBase
  • API
  • Close Page
  • Close Popup
  • Multistep
  • Option 17
  • Network Request Block
  • Wait
  • WaitForCondition
  • Fail
  • Option 22
  • Option 23
  • Option 24
  • Option 25
  • Download File Block
  • Save As PDF Block
  • CodeV2
  • Transform
  • Exit From Loop
  • Loop
  • If
useProxy
boolean

Whether to use proxy for this workflow

Example:

false

operatingSystem
enum<string> | null

Operating system for browser sessions (defaults to no preference)

Available options:
Windows,
MacOS,
Linux
Example:

"Windows"

knowledgeBase
string

Knowledge base text for this workflow

Example:

"Company information and guidelines..."

useLoginDetection
boolean

Whether to use login detection for this workflow

Example:

true

I