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": [ "6da1f97d0b5154dd88888c7b" ], "x": -13630740.572150797, "y": -43437044.20304646 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a7789911a0a49a2507b063d2" ], "x": -51510952.21111319, "y": -54955212.126576655 }, "error_handler": { "name": "childJob", "summary": "dolore in sint dolor", "description": "et deserunt", "app": "in Duis consectetur id", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/SM/xYVk-6My//~0/NUQ2YIKLK/u/WB/~1" }, { "type": "encryption", "pointer": "/h1v/~1/qkdidcQiG/~1/~0/Ifeu/y./~1/fbwyKg364/," }, { "type": "encryption", "pointer": "/g--/d1nN-Tm4/g,KLb/~1/~1/REpGdKu" }, { "type": "encryption", "pointer": "/z32TvQ/~0/nWI1tao/~1/~0/~0/~1/RxZT/~1/~1/b" } ] }, "groups": [ "774c792dde5474a296c33750" ], "x": -34845986.92902714, "y": 23025096.550631434, "type": "operation", "gridCoordinate": { "x": -54728918.880866304, "y": 40874406.84030503 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "afe48243954e3489cd03d33d", "2b405e06accde5d8ce25daae", "558bfe7ffe647176ccd2a612" ], "_id": "29f5a578-d9f7-20a5-7dea-841ef5f92c3e", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "occaecat culpa mollit", "accessControl": { "read": [ "cillum in", "aute fugiat", "laborum Ut elit" ], "execute": [ "dolore", "reprehenderit nostrud magna ipsum dolore" ], "write": [ "eu", "id minim" ], "manage": [ "proident", "reprehenderit non proident laborum", "enim dolore dolor ex consequat", "id eiusmod qui reprehenderit elit" ] } }, "errorHandler": null, "font_size": 12, "created": "1997-02-09T08:36:20.076Z", "created_by": "5ff2461de689f905296c6a31", "createdVersion": "laboris nisi enim dolore in", "last_updated": "1997-07-30T14:23:01.667Z", "last_updated_by": "c00d7f476ed5cbbe90377162", "lastUpdatedVersion": "in minim", "tags": [ "officia exercitation", "minim irure est deserunt", "do", "nisi est", "tempor aliqua occaecat nisi aliquip" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/tKQOm/~1/~0" }, { "type": "encryption", "pointer": "/~1/Vpt/~1/b-zxJAW4o-/Pn+D/qYC7BF8/niHj/~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": [ "6e4a7a60e842b2f493546f84" ], "x": 73145887.10297292, "y": 14635181.86024259 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "d19fbf07a56e4fe25a6712c5", "dfd7924f631cd9f15147b683" ], "x": 86454565.0534319, "y": -9007064.736692354 }, "error_handler": { "name": "childJob", "summary": "ullamco in consectetur cupidatat Lorem", "description": "sit laborum proident velit", "app": "et laborum ut labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/P2YAoQq" }, { "type": "encryption", "pointer": "/BVf/z/RkVx/~1/~1/B4gZ/U/Vs6v/~1/xJH/~1/H,Zo8SdfpGv" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/IKAerf/~0/wz" } ] }, "groups": [ "d08b4635e6f42a94a81eef07", "ee20ddb7121f3896c580fbe3", "6bbd1eaffcaed2755ad160de" ], "x": -61834355.238267235, "y": -91266089.02487199, "type": "operation", "gridCoordinate": { "x": -93988094.14532559, "y": 55641146.17947382 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "1a72f0f752f540f9e0543394", "37b077391e33a1a80730027b", "58621b1a337c543832473f39", "1bf87bb4db6cce88dce91b6c", "30c38bc79cc8a3cb5bcbdb23" ], "_id": "f5750544-16fd-7dea-a8f5-1aafe46b9cb0", "description": "dolor aliquip commodo quis", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "non voluptate ea dolore Lorem", "accessControl": { "read": [ "occaecat cupidatat dolore labore", "minim nisi ipsum commodo", "irure in consequat dolore", "reprehenderit elit ullamco id aute", "dolore velit non" ], "execute": [ "non ex" ], "write": [ "sint sunt non ut exercitation", "qui fugiat ex", "commodo et" ], "manage": [ "id" ] } }, "errorHandler": null, "font_size": 12, "created": "1980-08-21T12:00:57.542Z", "created_by": "8d453988aebf3bd9ba2a6035", "createdVersion": "sint qui", "last_updated": "2024-03-28T12:43:00.683Z", "last_updated_by": "890e67e7318134494bb62e45", "lastUpdatedVersion": "Duis ut ipsum et officia", "tags": [ "minim ipsum sit", "occaecat Duis", "incididunt" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/p0Ix/~0/~1/OH.kquJf/~0/wgUB9S5Bz/uA0i-b/~0/uW4HRys+" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0/w+ERGD/kQL1lrsScDw/~0/~1/~1/NDEjHE/~1/ub" } ] }
{ "$ref": "workflowDocument" }