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": [ "3755e52b2f43829654042862", "b0f95ff55d3b482bfc191690", "6ad7365771cc99ba0d0eb18f" ], "x": -77567066.95180635, "y": -32042722.44620952 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "6d300b2da3f3f3df74a1bd21", "e598fee501280c2229a168ad" ], "x": 82199782.61774847, "y": -17433276.73574555 }, "error_handler": { "name": "childJob", "summary": "et Lorem", "description": "occaecat Excepteur minim in", "app": "id enim non", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ "ff953f5c0817280ca3d93523" ], "x": 39886703.30052057, "y": 84213124.21867424, "type": "operation", "gridCoordinate": { "x": 41632299.94519839, "y": -53581820.86084344 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "e394e2d3e08c51c5c2793554" ], "_id": "834aec64-689d-afbe-bda8-730d33ebd933", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "nulla pariatur exercitation nisi", "accessControl": { "read": [ "elit velit ipsum aliquip sed", "do exercitation", "amet", "et aliqua in culpa anim" ], "execute": [ "quis aliquip in sint", "amet", "nostrud", "nulla proident" ], "write": [ "aute", "Duis", "sed commodo ut", "elit magna" ], "manage": [ "laboris officia anim", "velit in deserunt est", "Ut" ] } }, "errorHandler": { "type": "Duis aliquip officia veniam", "name": "esse" }, "font_size": 12, "created": "1966-10-31T05:31:10.882Z", "created_by": "7738d3bc9202dac2a427e8a0", "createdVersion": "consequat velit amet", "last_updated": "1966-11-22T17:46:17.394Z", "last_updated_by": "1040bf69f7d7517ab029ba75", "lastUpdatedVersion": "consectetur dolore veniam", "tags": [ "ut consectetur non amet", "laborum Excepteur id consequat pariatur" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/nq,.cnG/YGufNWZ1S//~1/~0/~1/~0/TP7aOezniT/~1/~1" }, { "type": "encryption", "pointer": "/GScopr/~0/WQYH/z-VmcTUW//vpWD2lin.K//~0/s3jvnYAa2M/~0/vnl,R7VSX./~0/u4JT" }, { "type": "encryption", "pointer": "/q/~0/rk.Q/~1/~1/~0/LCBT/~0/rbWP5cwq" }, { "type": "encryption", "pointer": "/BQgTZzbKQ/~0" } ] } }
{ "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": [ "9b4d5c730aa594e1eb0ff5b1" ], "x": -67071135.34653732, "y": -86221051.74967606 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "f9b9e7c35f2a04f7924c95f2", "7d9ad188dc192df030559376", "6caa8e659b85a7c0d96066f7" ], "x": -17826034.0622451, "y": 84734486.88638711 }, "error_handler": { "name": "childJob", "summary": "adipisicing", "description": "commodo sed", "app": "quis labore mollit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/b8/~1/Lv/y/~1/~1/~0/~1/~0/~0" } ] }, "groups": [ "92e3948bd458f43480b36cee", "f95eec81e379ed07e9bf923e", "d95aa6cf0c8e6121522d4d00", "ffada3bde6d92795429e12db", "755ff100628b7439f37c3ed3" ], "x": -44847735.49273529, "y": -70870634.38899839, "type": "operation", "gridCoordinate": { "x": 88721839.68878439, "y": -45760387.67562745 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "662b397541438cc4e458e79a" ], "_id": "50903864-c90d-04ff-093b-6aa012a3e395", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "dolore", "accessControl": { "read": [ "irure et", "minim mollit dolor", "adipisicing sed dolor in cillum", "consectetur velit et Ut", "est anim nulla" ], "execute": [ "fugiat ullamco esse reprehenderit quis", "culpa in amet", "magna irure laborum cupidatat" ], "write": [ "magna incididunt est dolore quis", "pariatur nostrud", "magna do", "exercitation Lorem" ], "manage": [ "Excepteur sunt quis reprehenderit sint", "nostrud fugiat sunt Ut" ] } }, "errorHandler": null, "font_size": 12, "created": "1983-07-19T11:45:06.865Z", "created_by": "736251f3571eca6aad401c07", "createdVersion": "in amet veniam irure", "last_updated": "1973-12-23T15:48:33.616Z", "last_updated_by": "8dce12deb3c39b83a7b118c6", "lastUpdatedVersion": "esse in cupidatat ad", "tags": [ "laborum culpa ut" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1/ncYQtyZ" }, { "type": "encryption", "pointer": "/V/PAt3cik+H+f/~0/~0/~0/NOxd3kg/qzc1a7jjx/cEIrREqK/Ch9PSKVP1vi" }, { "type": "encryption", "pointer": "/T/~1/Q/M55w+r/~1/~1/IeCxBc/KN/mAFNfinC/~0/~1" }, { "type": "encryption", "pointer": "/L/OQQ4sdiG/~1/~0/W2/~0/~1" }, { "type": "encryption", "pointer": "/~0/NkClej" } ] }
{ "$ref": "workflowDocument" }