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": 62395118.14132851,
"y": 58308798.884070754
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -70050175.92929699,
"y": -12476258.328694895
},
"error_handler": {
"name": "childJob",
"summary": "Lorem officia sunt non sit",
"description": "Ut non sint dolore labore",
"app": "deserunt sint",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/y0RL6pyXcTB/D.5PtY/WIU0vPBa6/~0/SrwAbC/~0/pxOjc"
}
]
},
"groups": [
"4d12e1702d57ec8a24156ff5"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"0c7cd1299237e81e6e6a833c"
],
"_id": "8883414a-d12b-6c52-976b-79878c377e1f",
"description": null,
"errorHandler": {
"type": "sunt veniam id dolore nisi",
"name": "aliquip ex dolor"
},
"font_size": 12,
"created": "2020-11-18T06:55:30.047Z",
"created_by": "69a73fe5cd0463e0ee79fd20",
"createdVersion": "ipsum magna ullamco esse minim",
"last_updated": "1999-08-28T18:18:28.956Z",
"last_updated_by": "5d14846d64731a60076bc18f",
"lastUpdatedVersion": "Duis minim in consequat",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/~1/~1/Kpd+/A4DuIyEdHj/~0/~0"
}
]
}
}
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": -26361066.786920696,
"y": -21165550.787584886
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -54853362.92946936,
"y": -3144383.2714823633
},
"error_handler": {
"name": "childJob",
"summary": "eiusmod ad consectetur in fugiat",
"description": "nisi commodo Excepteur officia fugiat",
"app": "do culpa commodo ad veniam",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/HJgQR"
},
{
"type": "encryption",
"pointer": "/~1/TVmaYBYON7/w2f8zhn/PtCUBk/~1"
},
{
"type": "encryption",
"pointer": "/q-fpEt1uQc/~0/m//aVE7.x/tQG,qt.DsKm/e18RZFiOO"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0"
},
{
"type": "encryption",
"pointer": "/~1/nU-uG0b/lZT/GPRO42T/erj4V.R/~1"
}
]
},
"groups": [
"2e726e791e4b8921f1075f91",
"6cb9ec9da36f163bf9d6097b",
"c207fd1c04fbf4f36ad90550",
"88cfba066712b92fb908ff55"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"db5f65f1a2fc84c8a052d94c",
"5f0e6ace21c4c2f75416ff13",
"c777dbdbb6f1748d0d6c0be7",
"d1ec11f096521de1c0e8cb4d",
"9f69484601c768525c946abd"
],
"_id": "6e157c11-42ea-e9b9-eef6-88165e4fb3af",
"description": null,
"errorHandler": {
"type": "pariatur ut",
"name": "id dolor in laborum do"
},
"font_size": 12,
"created": "2015-12-08T01:20:17.8Z",
"created_by": "b57e68859712dfa3ce8686ea",
"createdVersion": "quis et",
"last_updated": "2018-09-28T14:13:38.703Z",
"last_updated_by": "9e2d5949e7c7f067db8a24c3",
"lastUpdatedVersion": "ullamco mollit esse",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/~1/Fu/o6Xzzx/~1"
}
]
}