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": [ "adf70370d90b3b883b34cea2" ], "x": -15783738.005329832, "y": -32375572.74921179 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "f827a262669b2172940ec91d" ], "x": -72508682.38596037, "y": -88155967.08888918 }, "error_handler": { "name": "childJob", "summary": "adipisicing", "description": "velit anim incididunt ipsum ex", "app": "officia aliquip eiusmod sit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/PgO/Ghd/vcGEB/~0/~1/~0" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ "3a14b633f9bae947951b254f", "6bf1cc1b1ea13d2fd2958d97", "7cee983fc919e24bd407dbde" ], "x": -17862480.09369147, "y": -14659048.389760613, "type": "operation", "gridCoordinate": { "x": -29846159.75036204, "y": -50724576.067511015 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "a1ce42189a42a3026383fa9d", "9fb3f1729ecd2ed636383023", "f7b9d3aa2a1e65cbe5cdc69c" ], "_id": "66a3bb76-419a-3351-1af9-9728cc322bd8", "description": "enim", "namespace": null, "errorHandler": { "type": "amet eu dolore fugiat", "name": "aliqua Lorem sed" }, "font_size": 12, "created": "1993-08-15T16:20:54.908Z", "created_by": "0a7660ad5c414cda842e6c1e", "createdVersion": "Duis ipsum", "last_updated": "1960-06-07T02:59:28.032Z", "last_updated_by": "1d06050a92c2f37ae81fa537", "lastUpdatedVersion": "ut", "tags": [ "irure" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/F.1GY9Fd/l,rc//~1" }, { "type": "encryption", "pointer": "/mmDT/VdptEgDO.4/qyissmNJB" }, { "type": "encryption", "pointer": "/yEu/g54u/~0/u4gnid0U/~1/GEJ4UJ" } ] } }
{ "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": [ "c316d2193ef413942d779f0e", "a145f0e4450d790b6bc945f2", "8f979786c2afb0903aa4917f", "8b9d8907e0b48661687a0a59", "9ae3fd6dd4bf58876ad1cdf7" ], "x": -64989345.26382718, "y": 44049229.42513797 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "32461a24663d92efb3bf5b5c", "818dda6105216c41fbf5ae40" ], "x": 87937707.78566298, "y": 29354980.83956039 }, "error_handler": { "name": "childJob", "summary": "laborum in", "description": "eiusmod nostrud laborum occaecat laboris", "app": "occaecat culpa exercitation", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/up5b/Y/DSz9p/~0/~0/~0" }, { "type": "encryption", "pointer": "/y/uAV/Danu85FH.aA/~1/~1/QOmO5" } ] }, "groups": [ "613421616f0332d6edb8035a", "80ac90881ee754a19a580a51", "89e3b515d9febf39999b89b3", "94fbf67701133787c4b3fa4e" ], "x": 81899609.2971482, "y": -82366732.38866735, "type": "operation", "gridCoordinate": { "x": -70731736.27574034, "y": 85211394.71091458 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "8f0fe6658639549e9b824784", "47ab7e79cef4d3f95fc3f187", "8210f4eabf01df1af2729f0e", "7f03ce909e3d1fd43a33aa5d", "cc79ee19ebdca3ec66d0b05e" ], "_id": "fe1597ff-f5b2-06ad-d127-b1b3916a1458", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "incididunt anim Excepteur pariatur", "accessControl": { "read": [ "sit cupidatat", "irure dolore non", "Ut", "et Excepteur in Lorem" ], "execute": [ "eiusmod proident irure cupidatat", "sed amet exercitation" ], "write": [ "in culpa eu consectetur magna", "ad commodo reprehenderit sint", "pariatur reprehenderit Lorem dolor" ], "manage": [ "ex nostrud consequat ipsum" ] } }, "errorHandler": { "type": "amet commodo", "name": "irure labore reprehenderit" }, "font_size": 12, "created": "1973-03-27T09:12:15.726Z", "created_by": "13931f2dd91c3264eb9e526f", "createdVersion": "incididunt elit", "last_updated": "1977-02-26T16:52:40.809Z", "last_updated_by": "e4e0de1e543e67103a17be4b", "lastUpdatedVersion": "sit esse ipsum", "tags": [ "cupidatat ipsum pariatur aliquip", "Excepteur tempor qui", "sit consequat", "laboris aliqua", "incididunt et" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/QbulE1N/~0/xQdwy/~0/A" }, { "type": "encryption", "pointer": "/~1/~1/Ho98Fzd" }, { "type": "encryption", "pointer": "/BMc1f1yJn/~1/~0/~0/C5r9z" } ] }
{ "$ref": "workflowDocument" }