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": [ "c100aaffb1d667c5628ecd10", "10e1449d775994cde40eceea", "1a1df100cb35ae48ff64dbbd", "3f199e3c99d1c80eec45124d" ], "x": 26824419.75040333, "y": 85859855.76053637 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "7a5e87358606b0a21332cfb5", "d0865627f05a1fa3c1b960d3", "472e62e1fd8be21365802635", "bce1850a1840a71f4824c7c3" ], "x": 64348844.80570689, "y": 62396936.4107258 }, "error_handler": { "name": "childJob", "summary": "dolore minim laboris", "description": "est eu sed", "app": "laboris exercitation aute nisi", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/hpWmIMM/tM/~0" }, { "type": "encryption", "pointer": "/LE.1/j-1OA/qMg9a/~0/~1/jY/~0/~1/dvql" }, { "type": "encryption", "pointer": "/m-AJ/C5X/~1/wGPIuc.HruI/YKr/F/Di/~0/iDlMWRG5/~0/mxKi8zZr7/HYLshxR/~1" }, { "type": "encryption", "pointer": "/daI/yb5Eah/B/tYp/u,62mU/~1/~0/~0/hCt0Cm" }, { "type": "encryption", "pointer": "/~1/uq" } ] }, "groups": [ "690ed5d9eb35b7be939eda8b", "b240bb01508dc93c61d7388e" ], "x": 88584246.83214054, "y": -41809779.94428403, "type": "operation", "gridCoordinate": { "x": -20538269.27142945, "y": -27576686.499065146 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "8aeb7689704329377eac6782", "ad5354ca7df7719a93c09127", "b18031cb0ac5caef96eb20be", "3cf40c5067352dd98b130220", "9c34212c71c8eb556b724612" ], "_id": "e4aa1903-f564-b1ec-68d5-3989900bdea1", "description": "pariatur", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "ullamco sunt aute", "accessControl": { "read": [ "anim est ea sed", "labore incididunt Lorem", "enim", "nostrud Lorem non est", "consequat et magna tempor" ], "execute": [ "dolor deserunt sint", "reprehenderit", "in occaecat Duis ipsum magna" ], "write": [ "ad enim nulla", "cillum laboris", "velit elit fugiat" ], "manage": [ "tempor magna mollit", "ipsum enim", "in anim exercitation", "id sint nisi nostrud pariatur" ] } }, "errorHandler": null, "font_size": 12, "created": "2003-03-18T10:05:48.062Z", "created_by": "fc8e7557f3e48b057cc27398", "createdVersion": "sunt Duis sint", "last_updated": "2022-09-21T21:05:15.459Z", "last_updated_by": "ad267d6d4ab4869dc508fcba", "lastUpdatedVersion": "laboris", "tags": [ "occaecat magna cupidatat", "et in sit veniam", "mollit consequat elit ut" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/LAKg/Or0u5/pYjCnaDB/lVtRD/~0/~0" }, { "type": "encryption", "pointer": "/i,U/z4" }, { "type": "encryption", "pointer": "/FCSVyUd/~0/Z1A/~0/~1/~1/~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": [ "64ec1d000e61642f727ae781", "6bbfed2658d9b12d148615f8", "cfee94dc2c7eee1776d1ec8e", "f1af41573552b6df3e9dde2d" ], "x": 20489278.598078594, "y": 15813525.124002263 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "6f251b52c77432fd6d9a024d", "4aa093a57203ccf07f91fd8b", "23596f979d0c31cae78e62ce", "b15776efabb404a545000482", "0d028a7582d7ff8934a0e730" ], "x": 63074373.66077265, "y": 9262363.81431149 }, "error_handler": { "name": "childJob", "summary": "non cillum", "description": "enim pariatur labore esse", "app": "laboris qui culpa esse exercitation", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/VxbRA/~1/J/VupdlzyN" }, { "type": "encryption", "pointer": "/oT/K+dwT,J-5rD/~1/~1/u/~1/V+VS2Zyfr/~1/~0/i" }, { "type": "encryption", "pointer": "/vV4" } ] }, "groups": [ "b2d38ecd327cd3e1a1c1b555" ], "x": 53356139.84070441, "y": 60563184.81261912, "type": "operation", "gridCoordinate": { "x": -60949100.579307735, "y": 39621515.65755576 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "0d1822695a14ba41cf16b3e4" ], "_id": "98ec4431-a706-73ca-efad-0ea8249e5b05", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1983-03-10T20:02:04.456Z", "created_by": "50b397cc4ada0d753d4ac3f9", "createdVersion": "pariatur", "last_updated": "1950-11-15T05:02:24.783Z", "last_updated_by": "5d610b5471ca48b73de7d262", "lastUpdatedVersion": "laborum aliquip qui esse consectetur", "tags": [ "velit dolore Excepteur", "veniam cillum voluptate amet Duis" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/YPdWl/~0/sCUMTMGD/~0" }, { "type": "encryption", "pointer": "/~0/YYWhxk./sMylKm/~0/~1/rmskJjn8Bl/mwgF4iJ5/~0/ZWClVV.I2+/~1/mM" } ] }
{ "$ref": "workflowDocument" }