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": -55699241.40778655,
"y": 57963824.472980976
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -11319194.94267252,
"y": -2115877.8436168134
}
},
"transitions": {},
"groups": [
"e84019c6ef01f95a61abaf2d",
"d7131fa3ad1e5e300e708d57",
"cc8ea77b86f5a229c748de19",
"3fafc9f5da98e981faa441d7",
"41d529c0a63f73f3f96efb5d"
],
"_id": "dd6c8970-518e-3c46-17a1-85859e84d694",
"description": "dolor",
"font_size": 12,
"created": "1956-06-16T10:50:48.804Z",
"created_by": "ad00743ee69709e00bdd78cc",
"createdVersion": "enim",
"last_updated": "1974-10-22T01:15:34.294Z",
"last_updated_by": "3477073b8b407860719044ab",
"lastUpdatedVersion": "incididunt ad in Duis",
"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": -22777200.188206375,
"y": -36299437.55136171
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -60088181.0859959,
"y": 16071778.691968009
}
},
"transitions": {},
"groups": [
"95f28496b6b53d60579d7b18"
],
"_id": "d9ccc324-d573-0651-dae9-1d3b5b833d04",
"description": "ut sed",
"font_size": 12,
"created": "1977-12-30T14:38:09.751Z",
"created_by": "c48468359eba37ee28ba6f55",
"createdVersion": "nisi Lorem",
"last_updated": "2002-06-11T06:11:32.275Z",
"last_updated_by": "014684471cb3145899e37dc1",
"lastUpdatedVersion": "et ex est consequat",
"tags": []
}