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": [
"a74635b81211c94f008eff5e",
"81521d42d11d67764e9bcc00",
"72057347a9968a33d869822b"
],
"x": 11194586.196066633,
"y": 18793445.79881303
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"f1716a57dee8c4126ef67a34",
"8d824a7ff8fd96f24cbd4c01",
"7ab494e86579d152649d57bc",
"f94393c00654120ab1c94c46",
"b2653887c4825f1a5c2f7283"
],
"x": -95705120.27380294,
"y": 81253025.18751276
},
"error_handler": {
"name": "childJob",
"summary": "exercitation dolore ipsum",
"description": "adipisicing ut id",
"app": "in tempor in anim",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/N8S"
},
{
"type": "encryption",
"pointer": "/~0/BoOQeF3/er/KzCbMk/~1"
}
]
},
"groups": [
"2c3042f89716252ddda50bb9",
"394ecb5ce62be2af08d95d79"
],
"x": 77303678.39702877,
"y": 85303345.178213,
"type": "operation",
"gridCoordinate": {
"x": -67133407.5930651,
"y": 84978988.85442919
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"2ef24d6bc0c316450c189ad0",
"9a83dd8ed49c2863b0643264",
"f4edd8969641266e283d0c4f",
"4de826653a5b05c3a68818b0",
"3da1373d21c08992970046bd"
],
"_id": "78dccecd-1671-2cd7-e1fc-fc7d80567030",
"description": "ut Ut cupidatat nostrud",
"errorHandler": {
"type": "in",
"name": "sunt"
},
"font_size": 12,
"created": "1963-10-16T16:37:04.872Z",
"created_by": "84a8d745acf1010f38975716",
"createdVersion": "Lorem anim laboris",
"last_updated": "1997-06-21T23:00:06.702Z",
"last_updated_by": "f172894db8b35b223fa79fcf",
"lastUpdatedVersion": "cillum est fugiat",
"tags": [
"irure nulla consectetur",
"dolor officia magna Lorem",
"minim elit laborum incididunt",
"ea elit Lorem aliquip"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/E.WfRsdv/~1/Ah3941gU2u./Bk/~1/OI/~0"
},
{
"type": "encryption",
"pointer": "/~1/YV108J/~0/YJf6RaK/~1/h2il/WnaMOH"
},
{
"type": "encryption",
"pointer": "/~1/~0/c/~0/sUMjp7v/gohCDDK"
},
{
"type": "encryption",
"pointer": "/~1/~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": [
"6c214d5f6b5719ebfc1a8a3f",
"e8ca0d53885566680358188a",
"391543fc72ac8263b45658e1",
"07aa8a3cda7dd8989587a5a9",
"1fe43df951f6a89398ea9b41"
],
"x": 81822253.2395882,
"y": -6719526.123724729
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"e19800fd47ee12a922cc3f13",
"779a5fbd65b63b4796532f89"
],
"x": 13549530.944480062,
"y": -98763828.28709814
},
"error_handler": {
"name": "childJob",
"summary": "quis dolore esse occaecat",
"description": "labore eiusmod",
"app": "eiusmod laborum ad Excepteur et",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/y2IU1itVUgH/~0/~1/~1/rVv4FA/~1/~1/~0"
}
]
},
"groups": [
"e3ca8fae9f2fa0fb086f769e",
"e6d3093ffe70192a9ca09625",
"269a273ea2e9a8bb03686785",
"6351673401672d0a5cebc843",
"e87c010a2e6c19f4707797fb"
],
"x": 57418082.003035754,
"y": 58307068.68057224,
"type": "operation",
"gridCoordinate": {
"x": -5940023.258325011,
"y": 89043940.99269107
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"45e17897347059d4669ced1a",
"ce61cba94fd4816cdf55f4e2",
"7268d04f6ef26e41eb0ffdc0"
],
"_id": "b7666add-fb45-ff25-290e-7ba66f375bbc",
"description": "nulla et commodo ipsum consectetur",
"errorHandler": {
"type": "sint",
"name": "sunt ad labore"
},
"font_size": 12,
"created": "1975-03-22T17:53:16.37Z",
"created_by": "cfe508180cb6ec0f50af3180",
"createdVersion": "in aliqua fugiat incididunt",
"last_updated": "2003-06-24T18:08:48.601Z",
"last_updated_by": "97921ff5780c7a45af305c8d",
"lastUpdatedVersion": "incididunt",
"tags": [
"et ea",
"consectetur",
"ipsum est occaecat",
"nisi est ut aliqua"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/CymZux/Eu/hM4S5/~1/o7azAuxNy+H"
},
{
"type": "encryption",
"pointer": "/WyYrbFuJ/p.tLy"
},
{
"type": "encryption",
"pointer": "/~1/Exg/aS7z-F7Fp9/xgW.igPgI/~0/~1/JA-GTS5m/fa"
},
{
"type": "encryption",
"pointer": "/~0"
}
]
}