v2
latestOpenAPI 3.0.02026-07-31226285.0 KBcreateFlowTemplate
Create a new Flow Template (V2 workflow definition).
A flow template defines the structure of a workflow including its phases, tasks, edges (connections between tasks), and trigger configuration. Once created, the template can be used to start workflow executions.
Query parameters
When true, size/count limit violations (max incoming edges per task, max branches, max entity-sync rules, ...) are enforced as 400 errors. Used by the flow-builder UI for interactive authoring. On update, pre-existing violations are tolerated as long as the request does not worsen them. When false or absent (default for API/system callers such as blueprints, configuration hub and snapshots), limit violations are accepted and returned as limit_warnings. Structural errors are always enforced regardless of this flag.
Request body
Example request
{
"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"
}
}
]
}Response
Success - if the flow template is created 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"
}
}
]
}