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": 84260418.26230258,
"y": 68084539.30560985
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -2898827.281593874,
"y": 91075435.0380438
},
"error_handler": {
"name": "childJob",
"summary": "occaecat ex",
"description": "ad reprehenderit cillum enim",
"app": "veniam mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/UVWzHQ+/b/o8MEYLFu/~1/~0/ntL1mLRf4/~1/zVxn5"
},
{
"type": "encryption",
"pointer": "/x-vMCPMWxE/s/~0"
}
]
},
"groups": [
"20a6eecd2cd04cc7cf0627ed",
"af64e4d3b2c95ae46f337fcf",
"2bfa37355e7cfceeda4b0836",
"e393014f0b4d5bdf1ccd964c",
"3cc5b3e2121efe9d42fa636e"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"a851ce5c12ef1b3a69d37c1e"
],
"_id": "2da8c27e-dda7-7242-3888-f6485b981c79",
"description": null,
"errorHandler": {
"type": "magna aliquip",
"name": "sunt enim deserunt"
},
"font_size": 12,
"created": "1975-09-07T13:50:26.089Z",
"created_by": "bacd18d9dae79b3a484a4614",
"createdVersion": "aute magna in",
"last_updated": "2018-03-14T12:56:03.528Z",
"last_updated_by": "63d6c0493ed6c336d824e170",
"lastUpdatedVersion": "reprehenderit culpa minim ut elit",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/HktPn8X"
},
{
"type": "encryption",
"pointer": "/~0/~1/~1/e+Q-l-/GQolTBe7Z/BZgzl1"
}
]
}
}
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": 19807634.91304356,
"y": -76095325.54694206
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -83344993.59110619,
"y": -81203859.68592863
},
"error_handler": {
"name": "childJob",
"summary": "qui eu dolore aliquip",
"description": "mollit Excepteur est voluptate",
"app": "mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/jfwZXwd/~0"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0/DmvMfP-uSi/tGJhj/qE/Isiu/aD,QEu-Kw/~0/l/vDxb"
},
{
"type": "encryption",
"pointer": "/x/~0/BEf"
},
{
"type": "encryption",
"pointer": "/smN/~1"
},
{
"type": "encryption",
"pointer": "/~0/H/Lh16x/~1/FCRXvdHQXK/ZUIiM+Lycpi"
}
]
},
"groups": [
"64eb8231451a43ff449f0fbf"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"00a71482a9c1df651a7f31d1",
"3c18dbfcbd0f96ae9440bab8",
"e2a93025ce73246fbcef40cb",
"27a40c070a18c0426cfd4395"
],
"_id": "d3e634fd-e63a-4898-c6ee-29ba7af07e47",
"description": null,
"errorHandler": {
"type": "dolore labore Lorem",
"name": "qui esse aute"
},
"font_size": 12,
"created": "1993-10-16T18:56:09.956Z",
"created_by": "a26d1b74525cc4c36cfd7528",
"createdVersion": "nostrud sed et",
"last_updated": "1970-03-16T12:23:24.718Z",
"last_updated_by": "8fa0dc4f3d1bd5934fd0d638",
"lastUpdatedVersion": "incididunt nulla in est",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/o5/DI9cvN/a/vWATTC6w/~0/HXJWG/tgi0HLOH2W/lpk-CM2zWw/~1"
},
{
"type": "encryption",
"pointer": "/~1"
},
{
"type": "encryption",
"pointer": "/tMDOZxlp--/SzFa4.MA./~0/UbSO"
},
{
"type": "encryption",
"pointer": "/NH5/~1/fm4Th8bHr"
}
]
}