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": [ "547fd895e3bf24e5e29aebc1", "3774fede2f0037e17a00eccd", "493265ece563dea1c07ca4f2", "ba9c8b2b81238dcb1d118dd3", "60bff5eada4f0b6ed0e6af5b" ], "x": -62918238.89188675, "y": -94767151.65237488 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "1959b46d8849b21e4b5bbf5d", "a74637ab5dc7ceb2286980da", "aeaf9deeb210a0dcf5004761" ], "x": 68888738.69345656, "y": -3623480.839729339 }, "error_handler": { "name": "childJob", "summary": "magna qui", "description": "eiusmod", "app": "quis voluptate", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/a8avyMFplF/~0/~0/~0/~0/~0/vUI5o/ao0mMeEYPVg/saiOXMKH" }, { "type": "encryption", "pointer": "/~0/~1/~1/~0/~0/riCEorW3e/~1/Zq+.bene/x/~0" }, { "type": "encryption", "pointer": "/~1/TWxF0/rW/W2sJZu/rQA+LzW" }, { "type": "encryption", "pointer": "/~1/~0/vKiqC1/av9kinv1KS/u" } ] }, "groups": [ "d183b225338e9b285f75dbb4" ], "x": 92293201.65614513, "y": -88714465.19316098, "type": "operation", "gridCoordinate": { "x": -23645332.736444175, "y": -75606451.7614869 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "c7eb66b97dc90bd6058b7cf7" ], "_id": "88078966-3b0b-bc4e-5a28-dab2e7f7631f", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "2008-03-30T14:55:33.807Z", "created_by": "8b9ab20f0daa78d2b85e4364", "createdVersion": "Ut nulla elit", "last_updated": "2023-03-14T04:28:00.871Z", "last_updated_by": "53d1c1e9939248d1b7ce9c47", "lastUpdatedVersion": "irure", "tags": [ "aute sit anim et cupidatat", "cillum laboris do" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/hkxcc/~0" }, { "type": "encryption", "pointer": "/FUJtDQ2./~1/FG60DQ26/~0/brB/~1/~1" }, { "type": "encryption", "pointer": "/cyL/vO3/nCpG44t" }, { "type": "encryption", "pointer": "/E4nSVY9/vqGBNN/Zat/FmWZ/~1/PER/~0/~1" } ] } }
{ "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": [ "3aa09ffcb82dc772d9509a11", "0549ff4eba21aed5aa106533" ], "x": -93366836.1863782, "y": -25868311.389941916 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "7cdf9a90602d2b0478dd050a", "a4699688601d7fe4bbbbd868", "51fe5e5d443d4a58fc5f666d", "335d4dc7ec0b9779ab368f6c" ], "x": 40090471.19771904, "y": 13370504.690417334 }, "error_handler": { "name": "childJob", "summary": "enim adipisicing", "description": "dolor aliqua", "app": "cupidatat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Ga/r/VHX/~0/Qr1Galf68/~0" }, { "type": "encryption", "pointer": "/AHyRug" }, { "type": "encryption", "pointer": "/k7xSK-o/~1/~0/~1/~1" }, { "type": "encryption", "pointer": "/Z6OeI5R9v/bx1xmRs.X/v/KXszgG6Lk/~1/~1/zT.kYcQZw/bJ8mUwp6" } ] }, "groups": [ "f803233266a62cdeee659dfe", "64e0196d66cae4cecffb4ae5", "b1463bfc4c41ca718386e2eb" ], "x": 1861496.5084920824, "y": -35204588.142605744, "type": "operation", "gridCoordinate": { "x": -32072384.731172442, "y": 30984489.881056592 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "d77b85b1de50c28afc0c2d77", "5969c70af13fc727c4db770c", "4674d851f5a293319a055e40" ], "_id": "b602a279-4bf4-fd03-995a-931cedad85ad", "description": "dolore fugiat", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Lorem eiusmod quis", "accessControl": { "read": [ "ex in" ], "execute": [ "incididunt laborum", "quis", "ullamco dolore in", "ut enim culpa deserunt commodo" ], "write": [ "aliqua laboris est elit", "ut ipsum veniam", "officia aliqua veniam", "officia irure" ], "manage": [ "anim aliqua esse nostrud" ] } }, "errorHandler": { "type": "deserunt dolor id ullamco pariatur", "name": "nostrud fugiat qui ea in" }, "font_size": 12, "created": "1993-06-11T23:56:10.879Z", "created_by": "86070a000a9572146817ef51", "createdVersion": "Excepteur Lorem irure", "last_updated": "1961-10-31T13:08:29.943Z", "last_updated_by": "a3021bb151f2a8a063c02138", "lastUpdatedVersion": "consectetur esse ut culpa", "tags": [ "laborum qui et", "sint" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~1/~0/~0/S58JdhKh" }, { "type": "encryption", "pointer": "/P.Ayv-n9fhC/cEI.F/OEmo9a/D3h/g.-Bd/RHX7pZ7wTT" }, { "type": "encryption", "pointer": "/o/QV/~1/c5MUTF" }, { "type": "encryption", "pointer": "/~0/~0/kAM5b/~0/~0/~0" }, { "type": "encryption", "pointer": "/YBxNmiytx/~0/xEwKdL/XK7/~0/~0" } ] }
{ "$ref": "workflowDocument" }