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": [
"e7eac88f78c6195a3692f503"
],
"x": 33471429.929212525,
"y": -71818644.386122
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"1db7d00c61e7719f29193cdb"
],
"x": 26691742.104587317,
"y": -84325837.49902585
},
"error_handler": {
"name": "childJob",
"summary": "voluptate",
"description": "officia",
"app": "Lorem",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/x/~0/~1/~0/zmi.h2KPu/xj/~1/J8yirHf/~1/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0/~0/~0/~1/jwg8IKGeJM"
},
{
"type": "encryption",
"pointer": "/D"
},
{
"type": "encryption",
"pointer": "/~0/U/~1/F-aHTowvp"
},
{
"type": "encryption",
"pointer": "/~1/W0bPO4/~0/g/i7/TVEME7Hk1/~1/~1/~1/N0w6.w"
}
]
},
"groups": [
"b31628328a6d99567a268c91",
"2010a99d6156a107dff69db7",
"526cefa02c43f8f587d697f3",
"9ce62a0d5e5c490c87bc8437",
"cae055d2e73edab42b09fb9b"
],
"x": -16318147.953956038,
"y": -42548189.27733713,
"type": "operation",
"gridCoordinate": {
"x": -12623385.93317987,
"y": 84469989.68848342
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"201a1ab42a3d4b9f6d0a8310",
"93029da54859778b51e4db67"
],
"_id": "bacecd44-1894-00b3-5311-9091f7663029",
"description": "occaecat eu",
"errorHandler": {
"type": "sit laboris in nostrud laborum",
"name": "nisi minim veniam proident laborum"
},
"font_size": 12,
"created": "1957-06-06T06:25:52.051Z",
"created_by": "b43c815942b78309ed9db427",
"createdVersion": "dolor id est Lorem occaecat",
"last_updated": "1989-12-28T09:41:16.923Z",
"last_updated_by": "cefbc369a95f9f7f2d4131b6",
"lastUpdatedVersion": "nostrud commodo minim",
"tags": [
"cupidatat eu incididunt occaecat sed",
"culpa eu officia in aute",
"in officia ut dolor"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/u/U/~1/~1"
},
{
"type": "encryption",
"pointer": "/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/FjRfm/~1/~1/~0/~0/YV6k/~1/M/xK.39y/GfnoM."
}
]
}
}
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": [
"66343dd915f49e62034d3aa0",
"bb47bab9611f83aa55c0a116",
"5f850b714009dc0da8e21764",
"3111504e4650be79bc28f17f",
"e18d33e9affc4d610bd72471"
],
"x": -74120538.43775493,
"y": 71806384.02864492
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"34f9bde8bd28e9f59f105962",
"dc388069f208616c14824785",
"182054e10407e56f582574be",
"6235323b21e1684d8be029e5"
],
"x": -26932337.662389114,
"y": -88592457.25784603
},
"error_handler": {
"name": "childJob",
"summary": "voluptate ut fugiat consectetur et",
"description": "sed in cupidatat dolore",
"app": "mollit sed elit irure",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/aMc0GpA0B/~0/F+6fJcZk/~0/b5yj/~1"
}
]
},
"groups": [
"73f8fcad52980eca4ab5ceb8",
"4697d1b7cc89b4c2f5dd17e0",
"6ebd3c614bcce02c19a3dfa0",
"fdce5a1df21b6b2e5a79cfb9"
],
"x": -27788008.2015249,
"y": -96585899.26258227,
"type": "operation",
"gridCoordinate": {
"x": 55658470.78949177,
"y": 56689569.29981688
},
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"cd82b2886683184703d6526b",
"857743c78b91ed2f7e1cb460"
],
"_id": "431ecf49-ba6c-18b9-c654-e6245c0f57fd",
"description": "veniam pariatur deserunt dolore magna",
"errorHandler": null,
"font_size": 12,
"created": "1951-10-05T08:26:57.157Z",
"created_by": "7d63ef6709c33eeeae760f4e",
"createdVersion": "velit nisi nostrud",
"last_updated": "2010-02-17T00:53:59.043Z",
"last_updated_by": "5fbb98fe6d6ace3d2c8afdb5",
"lastUpdatedVersion": "cupidatat sint",
"tags": [
"in qui",
"consequat deserunt labore ad et"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/~0/Cey9LtQ1//~0"
},
{
"type": "encryption",
"pointer": "/NaRZFxw/~1"
},
{
"type": "encryption",
"pointer": "/cBRuImsz8"
}
]
}