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": -96363309.33484234,
"y": -16003486.151305735
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 86792428.88108912,
"y": 8564678.767669156
}
},
"transitions": {},
"groups": [
"3116bf2d27afdc7eadbd4607",
"0ce8c8d54a365b4dd6c31781"
],
"_id": "4f5d9340-c016-f70a-20a7-ff4c5867d3e1",
"description": null,
"font_size": 12,
"created": "1943-08-14T18:24:23.934Z",
"created_by": "632ee14d73f147f2e916e873",
"createdVersion": "dolor commodo sit",
"last_updated": "1948-07-17T20:41:55.737Z",
"last_updated_by": "c2d1a0d105942dbde697583d",
"lastUpdatedVersion": "proident nisi magna",
"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": -29483862.092831627,
"y": -48938612.35475048
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -99885708.9776811,
"y": -24767334.723706648
}
},
"transitions": {},
"groups": [
"82c3f25c09a521da4fda0be4",
"e79b9792b725d10cfc4be0c2",
"391cdb13bdb03aea65081b94",
"589330c3c74daf8bef5a51b8"
],
"_id": "e8721279-66dd-60ce-aff0-8b062fe35387",
"description": null,
"font_size": 12,
"created": "1986-08-21T06:26:48.557Z",
"created_by": "6478f8d8dcc2bf9a0e365745",
"createdVersion": "nulla in est laboris laborum",
"last_updated": "1986-01-05T23:29:06.418Z",
"last_updated_by": "089114320c24f6d6bd2b5efd",
"lastUpdatedVersion": "elit",
"tags": []
}