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": [ "d6281c38ea0634e24bf67ecc", "b696d0199c4121e309e156e5" ], "x": -87155474.13231674, "y": 59776594.27289629 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "bceb5edce6b3b4bce494ad66", "0b1df63e12d9083b8d54f123", "8498091b18bde93ec6c7bdfe" ], "x": -88327256.5117188, "y": -18042000.4346976 }, "error_handler": { "name": "childJob", "summary": "magna nulla in", "description": "adipisicing pariatur", "app": "aute officia et mollit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ef62fr/WQydP3XxL5,/~0/A1G3Wz3" }, { "type": "encryption", "pointer": "/~0/Oh//CGKIaf0/~0/H..W/~0/p1mNibaN/~0/rrs1MFf0" } ] }, "groups": [ "25d1de751f8ad8952961748b" ], "x": 35777484.90910047, "y": -41710891.947461, "type": "operation", "gridCoordinate": { "x": 77570862.80607978, "y": 95030544.49965718 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "225e7b1a811a8ed6150082fb", "10f1a4f6d303eaa1d350f4f3", "b71e46007d2855203f6f7dac" ], "_id": "531e5f51-1710-f84a-c8ab-3deed01535ac", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "ipsum aliquip", "accessControl": { "read": [ "ex", "exercitation ad magna", "deserunt consectetur exercitation dolore" ], "execute": [ "voluptate culpa est id cillum", "incididunt consequat consectetur", "in cillum id officia", "Excepteur commodo consequat" ], "write": [ "voluptate non" ], "manage": [ "Ut quis non", "occaecat in anim sint", "nisi sit exercitation fugiat" ] } }, "errorHandler": null, "font_size": 12, "created": "2019-11-07T18:44:16.804Z", "created_by": "a93a66bc4a0e8957ee0895cb", "createdVersion": "ut sunt et culpa nisi", "last_updated": "2024-07-16T17:47:33.476Z", "last_updated_by": "9e40b5bf71e4ab2804bc194e", "lastUpdatedVersion": "dolore in aliqua incididunt", "tags": [ "laboris ex ut", "labore exercitation", "consequat sunt", "consequat aliqua irure" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/XOWai" }, { "type": "encryption", "pointer": "/~1/YRm/~0/~1/pvA/OqT24/hnHHxRUgI" }, { "type": "encryption", "pointer": "/~1/~1/~1/omwOndPypX" } ] } }
{ "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": [ "14e885ed70bb61e5ac5fd88c" ], "x": -74729712.9911507, "y": 76522455.69330555 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "f6008c1858024439b5095742", "c6f1d44ad91fe10839d34b70", "21d511042ef65a2ee0973e40" ], "x": 45641374.5624271, "y": 96084600.87768468 }, "error_handler": { "name": "childJob", "summary": "ipsum pariatur", "description": "commodo proident", "app": "est ea veniam velit culpa", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/FDAvuG/szwWqF5/~1" }, { "type": "encryption", "pointer": "/ILBd64/F642-PvIXw3/~0/YwD/vTwH/R6SJ9/~1/~0/vbBKIeoy/b5G5/Q/~0" }, { "type": "encryption", "pointer": "/~0/~0/~1" } ] }, "groups": [ "f6b41ce29d02b609f6f70a46", "3017c8f7c55ff39af58398ca", "8403f6eab8d993c305f68492" ], "x": 77294907.46501178, "y": 26710173.295455724, "type": "operation", "gridCoordinate": { "x": 13292353.806196645, "y": 22706550.028534785 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "a15fdce97ed8777966d5d99e", "0e6e31c541e15aa0b0fb481f", "24c0527f534e8207c2fa89bc", "f50132446bb6f6711373503e", "16d8a153a55827ec1693f2d9" ], "_id": "15b5fcc6-483c-fe42-9d19-1666049a5ebc", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Excepteur", "accessControl": { "read": [ "aliquip Excepteur amet minim ex", "ullamco sint cillum" ], "execute": [ "Lorem voluptate dolore reprehenderit", "eiusmod commodo consectetur", "adipisicing proident eu" ], "write": [ "culpa" ], "manage": [ "deserunt est voluptate ex nostrud" ] } }, "errorHandler": { "type": "nostrud sint deserunt non", "name": "enim laboris quis dolor ut" }, "font_size": 12, "created": "2017-05-21T00:30:55.763Z", "created_by": "29134bbe06e5e88aee5b9ab2", "createdVersion": "adipisicing officia velit Ut non", "last_updated": "1998-06-16T06:38:16.298Z", "last_updated_by": "76f524ad37739a64c53a6347", "lastUpdatedVersion": "voluptate Ut", "tags": [ "in", "elit qui adipisicing" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/X8ybJ-+cstU/jde3DcPGA9P/UoU3ThRmFgy/~1/~1/~1/Pt7kfX0yi/g" } ] }
{ "$ref": "workflowDocument" }