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": 58088646.42121795,
"y": 15843892.38566275
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 6796981.871076509,
"y": -94257481.250109
},
"error_handler": {
"name": "childJob",
"summary": "tempor laborum Lorem exercitation",
"description": "deserunt anim consequat",
"app": "nisi dolor elit",
"variables": {
"error": ""
},
"groups": [
"0c83c3409c98d969853d8890",
"5d3238c20cf6f1d5b09ae601",
"e19d8013aa253bfeab0ce888",
"78250effd1f2f81f5c6f557a",
"0c08be6c11d0ffba2db881d7"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"28288eeeacd73cf39d123f62",
"265c7d6b323a8d84f5db9796",
"b8063f0d587bf50d228d29e8",
"4683fc819dbc86fb5b38dfb8",
"62a75f493414b2c0f8f02da4"
],
"_id": "927457d7-92c1-0a1b-6df5-aedfb388ede7",
"description": null,
"errorHandler": {
"type": "cupidatat tempor",
"name": "minim"
},
"font_size": 12,
"created": "2008-09-10T14:10:37.897Z",
"created_by": "6ee7bd1922c750eeec12e89d",
"createdVersion": "ex in ad et",
"last_updated": "1967-09-25T14:12:21.985Z",
"last_updated_by": "87fe02c9de9eda189a76f592",
"lastUpdatedVersion": "id sed veniam",
"tags": [],
"canvasVersion": 1
}
}
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": 38425034.673111916,
"y": -33633952.97116014
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -72677637.49159774,
"y": -50723097.49473636
},
"error_handler": {
"name": "childJob",
"summary": "magna aute",
"description": "Ut incididunt pariatur nulla",
"app": "sint nostrud reprehenderit commodo ea",
"variables": {
"error": ""
},
"groups": [
"66b3beddb60ca664da952429",
"670c84d0f65227d61e137e83",
"12dfaaf23a5a41b97b53beb1"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"77046bc61bdb00c26d4da4a1",
"9e84b774b7393a58866da5ef",
"085ead66ecdabf903db6d3d4",
"a3c8cb7176fe9ff94188815e",
"342fcc6c9378404926f2dd2f"
],
"_id": "cf7bd22b-8c0a-1f22-b978-b9d5de3db6e5",
"description": "quis",
"errorHandler": null,
"font_size": 12,
"created": "1945-03-13T05:23:24.901Z",
"created_by": "0af83bdad244580826e30b08",
"createdVersion": "dolor nulla eiusmod non sit",
"last_updated": "1973-10-15T19:37:12.161Z",
"last_updated_by": "b241c4f3afc27c8807ce516f",
"lastUpdatedVersion": "laboris sed ut tempor",
"tags": [],
"canvasVersion": 1
}