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": [ "6187ef8cb31b3cddc837f6d6", "0068cc2c22747b1858be6ba5", "18308890864568e17cb6d1d8", "012d93bc91d0767d4776e1d4", "d9ddd3faa200485a365486da" ], "x": 45890416.9781459, "y": -40115636.00902903 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a6e71d26d9df04c4f1c2e11a" ], "x": 23509697.79324186, "y": 20759787.927389175 }, "error_handler": { "name": "childJob", "summary": "incididunt", "description": "minim occaecat cillum", "app": "mollit Excepteur ut sint", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/xPCERp1OL/vtUq4JDK/~1/h/o/~0/~1/A0dkPfC+VG/~1/~1/~1" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/~0/~1/XAhF/~0/F7k,-/mIpJb/nlvzI.K/mo+yIemza/md0DuTu/t/z" }, { "type": "encryption", "pointer": "/~1/t/Ctip" }, { "type": "encryption", "pointer": "/~1/zQ3Ln52K4l/~1/~0/~0/OR6rb/~1/~1/hz/~0" } ] }, "groups": [ "c7d42bb0c7d6949bc4ffc0d3" ], "x": 73169004.92220607, "y": 28852986.79268469, "type": "operation", "gridCoordinate": { "x": 91268369.32209235, "y": -28036211.436170876 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "650f84c685c6099c0c55883f", "4c334095b7996d69b1761198" ], "_id": "3b81d322-c42a-eed7-8f2e-656e2818d5cb", "description": null, "errorHandler": null, "font_size": 12, "created": "1974-05-01T02:54:52.137Z", "created_by": "227ae0011ab188e080d65da3", "createdVersion": "occaecat Lorem", "last_updated": "1947-08-27T09:29:18.024Z", "last_updated_by": "6703a494893d4941bf7a6a15", "lastUpdatedVersion": "magna cillum ea", "tags": [ "Lorem in", "Ut do pariatur enim", "quis non", "mollit elit labore ad" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/BS/XPsLDYYBQPs/JfpLD/qbe-XdkzDYd/~0" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/u-lInE/UD/~1" }, { "type": "encryption", "pointer": "/~1/Mw+/uTg8/~0/~1/~0" } ] } }
{ "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": [ "af7cb4b9b15c79df294045df", "37317c1313144405bc9e692d" ], "x": 14407514.771210834, "y": -11650484.121953934 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9ff0a650dbf891000bd41f6f", "76e31083165bd7d44eefcc63" ], "x": -36667454.85987692, "y": 37434710.34533247 }, "error_handler": { "name": "childJob", "summary": "incididunt dolore cillum id", "description": "dolor irure occaecat", "app": "mollit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/w/NDBH2wB,/~0" }, { "type": "encryption", "pointer": "/~1/~1/~1/~0/AaQ7h/fhyX5ZpT-mp/~1/WRLSKsk/V,-p9QFZg4" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~1/c,ro2" } ] }, "groups": [ "85aa1bef4cbba05c82f2e556", "6bd2f3b38791233d1bc8090f" ], "x": -85430928.54066603, "y": -11406164.425795808, "type": "operation", "gridCoordinate": { "x": -8119491.211579353, "y": 99259944.14203805 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "539160950e38efe004611cb9", "855d4ef4b23bf9c2c8ab4d25", "a1805f218596922c79353773" ], "_id": "4792022a-6c91-cf9c-3f51-69de49e12908", "description": "anim", "errorHandler": null, "font_size": 12, "created": "2001-10-02T17:07:58.261Z", "created_by": "ea81583bb0ab00418ca2d89d", "createdVersion": "anim aute", "last_updated": "1972-06-11T14:59:51.76Z", "last_updated_by": "174336adafde1fcf0c5742ff", "lastUpdatedVersion": "dolore voluptate non ut", "tags": [ "cupidatat irure commodo dolore culpa", "esse", "ipsum reprehenderit cillum do", "ipsum sunt exercitation" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~0/kHKzK9CaGV/Z5c9R-V5" }, { "type": "encryption", "pointer": "/~1/~1/~1/~0/F/~1/H88I0L/Fyp" }, { "type": "encryption", "pointer": "/P/aNmfWw7a/oudPdHIQg-2/~1/kQwb/~0/~1" }, { "type": "encryption", "pointer": "/~0/nqa,KZiz35g/A1EaLbRekl/y,YmC9zCm/~0/~0/ztVZR65/e/JUSUbke" } ] }
{ "$ref": "workflowDocument" }