Summary
Add Workflow
Description
Add a Workflow to the database
Route
POST /workflow_builder/workflows/save
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
workflow |
object |
yes |
Workflow's data. |
Copied to Clipboard
{
"workflow": {
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [],
"x": -64599690.00756884,
"y": -12911530.939262718
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 59433625.275696814,
"y": -21593297.875085816
}
},
"transitions": {},
"groups": [
"97581ae5ca930a626a989a0c"
],
"_id": "3e06421c-d155-832c-8e60-2b63d5e026c5",
"description": "Duis cupidatat officia tempor velit",
"font_size": 12,
"created": "1996-03-31T02:44:01.138Z",
"created_by": "b0dccfdfcb908d61122479f1",
"createdVersion": "ea nulla",
"last_updated": "1988-01-20T23:11:41.613Z",
"last_updated_by": "253b66ca5fb7b5006a2b69c9",
"lastUpdatedVersion": "sit occaecat nulla ad",
"tags": []
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflow": {
"$ref": "workflowDocument"
}
},
"required": [
"workflow"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
The new Workflow with its data and ID. |
Copied to Clipboard
{
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [],
"x": -22846611.053308815,
"y": 7501214.257475659
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -6595133.446729884,
"y": -62096085.0140043
}
},
"transitions": {},
"groups": [
"3793c69832e71b09054d4dda",
"7f5d5c11aa1f180ba7a57bc3",
"0e8100bb0fb994bf91b8351e",
"e7b5f376913950f9b9c9f538",
"9e9fb9e2f0889819e6735658"
],
"_id": "49bb0716-ecf1-bbe2-9db9-86de71e1eaf4",
"description": "pariatur laborum sunt in ea",
"font_size": 12,
"created": "1968-03-09T19:59:35.706Z",
"created_by": "68be34800837060f14d32876",
"createdVersion": "consequat sunt ea eu",
"last_updated": "1945-12-06T10:59:55.377Z",
"last_updated_by": "7f2d912d7e02ae1fd5f95265",
"lastUpdatedVersion": "ipsum ad in",
"tags": []
}