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": [ "96f87827a8875f3623f5b729" ], "x": -99371399.25181216, "y": 43146695.348273575 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0c95a718e7ca89f936575baf", "b4c0f90d02f842b5951de0fe", "eeea9f26be6a4ebe49c15ccb", "e641bff539b406d3045c5827", "74fa64f149dc61ca79b17bab" ], "x": -22889533.109956205, "y": -74413408.82479706 }, "error_handler": { "name": "childJob", "summary": "adipisicing esse est", "description": "ex sunt exercitation", "app": "dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KL6DCKvgrcw" }, { "type": "encryption", "pointer": "/fsp9D+2/Fajm1kBR/~0/~0" } ] }, "groups": [ "dcf0fc3a2872a9300402e1fa", "f010aa8624c2c224e7b1ddf5", "148f931b2187e627f6a0b98c" ], "x": 13503436.936007679, "y": -20044336.816938773, "type": "operation", "gridCoordinate": { "x": -88766906.20722184, "y": 65205724.85568604 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "1ad7ea1da5758e5977377827", "0ea6452765dfe6fe78133dae" ], "_id": "4e8084af-0a60-acb2-a6cf-3bad4c620d74", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "dolore aliquip dolor", "accessControl": { "read": [ "dolore aute", "ut", "enim officia aliquip fugiat ea", "sunt" ], "execute": [ "consequat anim consectetur laborum reprehenderit", "labore", "consequat" ], "write": [ "laboris sit" ], "manage": [ "dolor est proident sed aliquip", "minim" ] } }, "errorHandler": null, "font_size": 12, "created": "1945-03-23T12:16:47.98Z", "created_by": "188798e6f40fb449ca04f5a7", "createdVersion": "ad adipisicing est", "last_updated": "1975-02-18T08:15:29.816Z", "last_updated_by": "5a6a2f8b3c12548a39e35505", "lastUpdatedVersion": "sunt aliquip commodo elit", "tags": [ "Duis aliquip" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/H7y,/~1/~0/~1/~0/HwiaEJUuS/~1/S5vD2K/~0" }, { "type": "encryption", "pointer": "/~1/SAJ/0NDECo/LUFtgo/~0/WOg.yJVDD/~1/~0/~0/~1/MQGP3/UrXcM1" } ] } }
{ "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": [ "4c12b15a690e186431d7d532", "ee45216918889747e2fa07fb", "74840ed46238603668b69663" ], "x": 25021523.079648226, "y": 70055569.42173693 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "ebc9b7f264414879808c60bb", "a1e4cb4cf8e1451f56ead622", "807966fd5f4caf4a639e3fb2" ], "x": -66734224.3274287, "y": -7878487.123215854 }, "error_handler": { "name": "childJob", "summary": "laborum veniam minim amet id", "description": "occaecat", "app": "mollit exercitation ea quis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0/uedNG.ua" }, { "type": "encryption", "pointer": "/~1/RMVjtmmG6vC/LgI6/sL2FlSXr" }, { "type": "encryption", "pointer": "/H/SgQ4L/~1/~0/WSK/oH3T+/N/~1" }, { "type": "encryption", "pointer": "/LxZVK87L-eT/NC/g/~1/F56S/GKGniEk1NIU/~1/~0/~0/gpKW5Aoov4/XnqXflC6E" } ] }, "groups": [ "d8aa060722636d5d44ae1678", "88601bf3b2e26326c0325c86" ], "x": 94838026.31576169, "y": -40277186.880564384, "type": "operation", "gridCoordinate": { "x": -97541158.7452518, "y": -64127909.14405737 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "6cb9b739f7176ce0d6c75f3f", "32f2891146ec748887fe5716" ], "_id": "84f82b71-36af-d3e4-7c91-9c3c8dcf3d7e", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "adipisicing incididunt aliqua laboris", "accessControl": { "read": [ "minim" ], "execute": [ "nulla", "nulla in", "amet consequat aliqua consectetur", "nostrud", "pariatur cillum laborum Duis" ], "write": [ "velit", "minim nisi Excepteur labore", "do sed", "id ex in sit", "nostrud eu aliqua reprehenderit ut" ], "manage": [ "non in dolore consectetur dolore", "fugiat", "dolor nulla Lorem ullamco mollit" ] } }, "errorHandler": null, "font_size": 12, "created": "1978-06-17T19:01:11.777Z", "created_by": "c92aa962034c309dfd9433b6", "createdVersion": "commodo sint Lorem officia", "last_updated": "1951-07-17T03:33:16.84Z", "last_updated_by": "8fefe0414fadbf321200ec7d", "lastUpdatedVersion": "commodo sit", "tags": [ "qui Duis", "Duis dolore", "aliquip culpa", "ut ut voluptate esse magna" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/C-gE/Ndu/~0/~1" }, { "type": "encryption", "pointer": "/~0" } ] }
{ "$ref": "workflowDocument" }