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": [ "cb41f54acd7258c68adb1abb", "214ae45f92664392ea77b2b0", "1aa59a7cd95004a316e10a66", "f797cbc53097fcf43931fae7", "872113486e53c749fb317fa5" ], "x": -48537290.828654364, "y": 76797103.69172695 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "ce9e23aff04fafc436ea211d", "9c7ca03ae38479723f7692f4", "7af167a72082477da27a80bf" ], "x": -29238680.08788775, "y": 68129194.697137 }, "error_handler": { "name": "childJob", "summary": "dolor sit et deserunt incididunt", "description": "in minim fugiat", "app": "do reprehenderit id Ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/wYxo+N4dM0A/~1" }, { "type": "encryption", "pointer": "/~1/~1/~1" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/zcL9M1/AeZz6z/~1/~0/~0/uSu1PKi" } ] }, "groups": [ "410ff34048623e008a5535c2", "cc3362ed46c2707eb792bf85", "163658d7228c7fc86991d04c", "bf2cabe5d9a9723a090cef3d" ], "x": 55925038.63349205, "y": -23104201.633441374, "type": "operation", "gridCoordinate": { "x": -89174909.72640248, "y": 21999601.722233206 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "8a846f5058aefdac9b6d1745", "e8c07a29c5ccabb00446aaf6", "d55091a60efd79ec575ba560", "8717b245a8074c181bb1c0a6" ], "_id": "bef8188d-ff47-9a3c-f02d-9a6d9cf328aa", "description": "in", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "nulla", "accessControl": { "read": [ "elit", "est sunt pariatur ea", "deserunt", "est anim reprehenderit" ], "execute": [ "deserunt", "proident deserunt ut Lorem exercitation" ], "write": [ "laborum qui incididunt sit dolor", "culpa laboris reprehenderit Excepteur sunt", "esse sit velit", "exercitation irure est cupidatat", "irure dolore" ], "manage": [ "et Ut non", "deserunt reprehenderit eu proident pariatur", "aliqua consequat fugiat voluptate sed", "ea", "amet in id" ] } }, "errorHandler": { "type": "laborum culpa in ut pariatur", "name": "sunt ipsum commodo" }, "font_size": 12, "created": "1950-06-17T05:46:10.544Z", "created_by": "f3692ad057453a6be0fd7dd6", "createdVersion": "qui deserunt reprehenderit dolor eu", "last_updated": "1945-02-25T01:45:16.917Z", "last_updated_by": "da6cb6129c75cced166f949d", "lastUpdatedVersion": "eu fugiat sed", "tags": [ "culpa non", "nostrud velit aliqua Lorem" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/zAz8w+/3j/S1IYeVa/~1/SQfbRy5" }, { "type": "encryption", "pointer": "/QqSB1ybRXF/zfBLP1/~0/~0/f/~1/~0/Uf" }, { "type": "encryption", "pointer": "/YA3Gw+5/~0/~0/~1/EsFz/NTn4a+7I5/h0/n0" }, { "type": "encryption", "pointer": "/lZX/vd/~0/~1" }, { "type": "encryption", "pointer": "/prQAhTr/MbiMe" } ] } }
{ "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": [ "b9596340a52611ac8edba59f", "7987356a91a92263bebe0a2b", "6d3eea1a97cab72f3e0b10e8", "942053a79fbd9e202ccb4712" ], "x": -24216967.014119416, "y": 94676679.22536403 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "814cee305243ca2ce9e4e628", "02a1b2a640f4fa7322352746", "634e8a75beac291ca7e0b8c7" ], "x": 79646104.4120675, "y": -54119342.16385399 }, "error_handler": { "name": "childJob", "summary": "elit velit ipsum consequat", "description": "enim tempor aute sit eiusmod", "app": "mollit do in aliqua sint", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/Tp/~1/~1/~1/~1" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ "afe374e561d6cccd6bfd2663", "54d17e703908a47837d5c1f4", "1af48a893d08045e76db8c8f", "41591cdf6ac2bb5c6a5d04fc", "85c4f8367adbf335a2216a64" ], "x": -1811531.9947510213, "y": -97383446.31590903, "type": "operation", "gridCoordinate": { "x": -43486716.11385715, "y": 14869781.226814464 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "0ef67099c24c11ec48066eeb" ], "_id": "11b017b7-2c5a-4f33-4ad6-0737f7bffc3e", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "qui Lorem", "accessControl": { "read": [ "culpa" ], "execute": [ "et sunt", "velit cupidatat sunt proident ad", "labore veniam deserunt consectetur ut" ], "write": [ "deserunt ex sunt eu adipisicing", "dolore", "enim fugiat dolor Ut" ], "manage": [ "occaecat culpa consequat", "minim", "proident laborum culpa velit", "velit anim ea" ] } }, "errorHandler": { "type": "aute fugiat eu exercitation dolor", "name": "cupidatat" }, "font_size": 12, "created": "1965-02-14T08:19:07.734Z", "created_by": "cfadf7fbbf4399b063bad0bc", "createdVersion": "commodo ullamco voluptate consectetur nostrud", "last_updated": "2004-03-28T21:42:50.478Z", "last_updated_by": "6cfe293bb455b6b47f5804b6", "lastUpdatedVersion": "eu in exercitation magna in", "tags": [ "commodo ut id adipisicing" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1" } ] }
{ "$ref": "workflowDocument" }