v2
latestOpenAPI 3.0.02026-07-31226285.0 KBFlows V2
duplicateFlowTemplate
Create a copy of an existing flow template. The duplicated template will have a new unique identifier and can be modified independently of the original. This is useful for creating variations of existing workflows without starting from scratch.
post/v2/flows/templates/{flowId}/duplicate
Path parameters
flowIdstring required
Short unique id (length 8) to identify the Flow Template.
Example:7hj28akg
Unique identifier of the flow template to duplicate.
Response
Flow template has been duplicated successfully
Example response
{
"created_at": "2021-04-27T12:01:13.000Z",
"updated_at": "2021-04-27T12:01:13.000Z",
"due_date": "2021-04-27T12:00:00.000Z",
"assigned_to": [
{
"variable": "{{entity.owner}}",
"value": [
"user_12345"
]
}
],
"phases": [
{
"due_date": "2021-04-27T12:00:00.000Z",
"assigned_to": [
{
"variable": "{{entity.owner}}",
"value": [
"user_12345"
]
}
]
}
],
"tasks": [
{
"due_date": "2021-04-27T12:00:00.000Z",
"assigned_to": [
{
"variable": "{{entity.owner}}",
"value": [
"user_12345"
]
}
]
}
],
"entity_sync": [
{
"trigger": {
"event": "FlowStarted"
},
"target": {
"entitySchema": "opportunity",
"entityAttribute": "title"
},
"value": {
"source": "workflow_name"
}
}
]
}