Summary
Add Workflow
Description
Add a Workflow to the database
Route
POST /workflow_builder/workflows/save
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
workflow | object | yes | Workflow's data. |
{ "workflow": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "ff1b7f96fbc5946cc5c58f7e", "72b1d964e197a1bf5c0583e4", "1ee2afab9fb706d43a7905b5" ], "x": 40789464.58361778, "y": -23864912.635777235 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "90ee7c022d98727b3ee57c25" ], "x": -30763325.639767066, "y": -45887619.06452148 }, "error_handler": { "name": "childJob", "summary": "ut commodo", "description": "et anim", "app": "et consequat cupidatat dolore ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/FObBPQK/hQeag+vLZAf/lSIeheu/WJuNx/k-rhS4./~1/WT0+R4H-/n0hXh" }, { "type": "encryption", "pointer": "/~0/~1/M+vW/~1/~0/wbjuyYoWGv1/~0" }, { "type": "encryption", "pointer": "/~0/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1" } ] }, "groups": [ "de8048e29510401294c8f04e", "6374ab23a2de48b25ad875ed" ], "x": -90684001.07644434, "y": -58949279.61212457, "type": "operation", "gridCoordinate": { "x": 68984296.86175328, "y": -82574229.42862682 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "3a8149416f5e8d9bfbdb638c" ], "_id": "213a3a4f-ae03-9b59-748d-7f6e12f6f7da", "description": null, "errorHandler": { "type": "ut tempor ex minim", "name": "quis" }, "font_size": 12, "created": "1985-04-02T16:03:01.114Z", "created_by": "b64fd9aed4664423538c451c", "createdVersion": "laborum sunt non irure sint", "last_updated": "1962-01-09T12:56:55.707Z", "last_updated_by": "858d3b4ff851bb7d91acbc70", "lastUpdatedVersion": "irure", "tags": [ "consectetur in", "eiusmod minim amet", "eu Lorem dolore esse" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/HD/~1/MPYvNA694/nE7//mSZ0V4N" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/~1/L3LBG/dyA.D" }, { "type": "encryption", "pointer": "/~1/yi/lb1TCr9F/~1/~1/zL/Cbv8fQrfp/~1/~1/RnxKl/~0/PkTf" }, { "type": "encryption", "pointer": "/vxLYNi-NC/~1/~1/ky3Pcg6JiJ/~1/~0/~1" } ] } }
{ "type": "object", "properties": { "workflow": { "$ref": "workflowDocument" } }, "required": [ "workflow" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | object | The new Workflow with its data and ID. |
{ "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "25fcb6d51a57f1f5676bfb35", "b82bec23fae428da3da2521e", "90b4e94501de001d7d00e542" ], "x": 99161150.81546688, "y": -19204367.46296668 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0185765b5a6ce642cefe1d25", "324e153abeb604aee95c72a1", "d419492471e3f9b64536ff31", "ee50d4d6efe951da4802932d", "f477952862eb62ca2836f46e" ], "x": 76221618.11410645, "y": -20854108.657560214 }, "error_handler": { "name": "childJob", "summary": "irure Ut", "description": "ex deserunt id", "app": "anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/nON7XX/n/q/dY/E/pHt73nk/~0/~1/mQ66B5zz/~0" }, { "type": "encryption", "pointer": "/Tuaqsti5-/OKg/~1/B/m-3ZDa/FmvxR/~0/~0/E" }, { "type": "encryption", "pointer": "/~0/~0/KspUby1qY/~1/UeNEbHGRig/~0/CCFho/~0/P1mhyuO/NpvjkHdOt" }, { "type": "encryption", "pointer": "/~1/XhJIkww/B7h8/Kp/dxLGN//vQH7a/p2+nwLy-/BA/w/~0" }, { "type": "encryption", "pointer": "/u2U,nulm/~0/~0/~1/R.huOjaw.0/~1" } ] }, "groups": [ "5c7a5539608c99115d324fa3", "d50d701cb990546a5b0ec46d", "4ab423a8bd089f7f624d93bf" ], "x": -24178127.241678074, "y": 4498032.301202089, "type": "operation", "gridCoordinate": { "x": -25705077.741428137, "y": 40695224.66451275 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "20d8167961bf8883b4848634", "33ec2aa165932f0a4f397fbb", "e62edcec79f0a84fe6107508" ], "_id": "df1447d8-bc59-e6da-897f-0ff0da419998", "description": null, "errorHandler": null, "font_size": 12, "created": "1956-03-17T16:29:35.907Z", "created_by": "090c7d49273f92c3f1f1c0c6", "createdVersion": "culpa do", "last_updated": "1960-03-02T21:27:05.606Z", "last_updated_by": "a504e959eb8a64f6a964c68a", "lastUpdatedVersion": "commodo nisi eiusmod ad", "tags": [ "pariatur" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/IGY/SWi-4M/Bd3.NzpZk/bXQVhApWM/U4n/vAba2+RTl6/~1/~1" }, { "type": "encryption", "pointer": "/o6S/q9GQ/~0/~0/~0/~1/Qe-p5qeUG" }, { "type": "encryption", "pointer": "/vt" }, { "type": "encryption", "pointer": "/J9HW/c/eGwSOeL/o7k/~0/ZPNwwEY/~0/LeWYPzoI" } ] }
{ "$ref": "workflowDocument" }