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": [ "dc5d460365ede64a8b2f07bd", "125fe1487d1a2e03e1bb4728", "32a4144014c58fc5875330f6", "cdae1609670fdd71eebeb6ab" ], "x": 93807252.910669, "y": 91217772.26360694 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "959e70b2b75c5e20e8a11fb2", "4db620091a7a156ca2538414", "a37ebceb83e49b3f4a83c797" ], "x": -95369030.92471354, "y": -95135770.01802416 }, "error_handler": { "name": "childJob", "summary": "in aliquip sed aliqua", "description": "consectetur qui ex velit enim", "app": "nostrud magna dolor ea laborum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/atLq/xEd/~0/IucY0d-MNcc/cA/~1/~0" } ] }, "groups": [ "c53ceecc805b9cf6650fc131", "ffe1e5a56544e788ef62ed8e" ], "x": -5525565.316010803, "y": 21337450.9878276, "type": "operation", "gridCoordinate": { "x": -70665605.20822582, "y": -87762669.12674391 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "153d86428b7c44a3d8f11d6c" ], "_id": "72261e52-fdc7-344f-9e62-d07269012461", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1999-10-02T16:14:08.246Z", "created_by": "38abf0e386d4e49631d03ca1", "createdVersion": "labore", "last_updated": "2010-10-06T05:54:05.741Z", "last_updated_by": "8d6e3b1cb2dfac47dc01344a", "lastUpdatedVersion": "Duis incididunt qui tempor", "tags": [ "Ut do quis", "amet ad Lorem cillum sit", "laborum", "anim eiusmod exercitation dolore Lorem" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/daZhJFNybi3/~1/HqOud/~1/ZAPmp7np4l" }, { "type": "encryption", "pointer": "/FpqQKfC65G/~1/x.i/O7xnx-.+J3-/~1/pQ/~1/~1/Nb6fWJF.w/fSVbVMf/RBHEF/2I" }, { "type": "encryption", "pointer": "/X/xiAuwv/OHo/~0/Q3uDv4G/~0/RbKcMZ80PKr/G/KN,iaNjsz/~1" }, { "type": "encryption", "pointer": "/vH4VfQ4LXi/~0/wF2q9l9/oH,.1JEaC/b" } ] } }
{ "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": [ "8b037f38b7e51fc666d35dbc", "c002dd509bf7c1fd4e627620", "7538a1870c030f6510c48b79", "8c79e0a2cad68d419485609a" ], "x": 41259219.47286436, "y": -61994290.94777038 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4ca94fb56fe43bd0bfd2aeab", "af96a7e2e3a44d697a929ee8", "8b827aa5724a367085a5e00c", "efbcc33281b252e73111d7c3" ], "x": 29294298.60822466, "y": -45199969.62124733 }, "error_handler": { "name": "childJob", "summary": "laborum aliqua mollit nulla culpa", "description": "laborum qui quis", "app": "deserunt enim consectetur anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1/~0/UqEqVi/W0Bd" }, { "type": "encryption", "pointer": "/NGesAxLdj.m/~0/C,fiMe-AE//~0" }, { "type": "encryption", "pointer": "/~1/QQbjD/~1/UH2eY.aWpH/~1/~0/PAvY-qJdELr/~0" } ] }, "groups": [ "b521c5168377d176e1b34333" ], "x": 4005110.0113675147, "y": -44941829.80365862, "type": "operation", "gridCoordinate": { "x": -37664251.20270727, "y": 43262452.57006401 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "2733f2ff2ae5c013bcbc9023", "a6ef4e1bccecc52864e0a441" ], "_id": "996358d9-6bfa-ef35-53a2-92173f4492c5", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "in commodo ullamco id ut", "accessControl": { "read": [ "non incididunt in Duis" ], "execute": [ "fugiat irure deserunt ad", "reprehenderit", "elit tempor", "exercitation cupidatat" ], "write": [ "esse sed aliquip dolor", "cillum aliqua", "ea do", "culpa sint", "aliquip" ], "manage": [ "enim minim et aliqua", "in Duis Lorem elit ullamco" ] } }, "errorHandler": { "type": "Ut laboris nostrud", "name": "Ut dolor consequat eu veniam" }, "font_size": 12, "created": "1951-01-15T23:42:57.629Z", "created_by": "0743e56e5e6cf75994f969d8", "createdVersion": "minim amet", "last_updated": "1975-10-09T22:26:09.686Z", "last_updated_by": "49c07ded166b771bc03824b9", "lastUpdatedVersion": "aute esse in pariatur", "tags": [ "minim ullamco esse", "sint" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/~1/RePGfzVj3/WIBVFoCUe/~0/~1" } ] }
{ "$ref": "workflowDocument" }