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": [ "abb3c6b15e1cf5a454d8ed7f", "b773147d7fc80bcd4a1bd6a3", "2d658c901f20e3ffb51b6fdf" ], "nodeLocation": { "x": 88015859.90968901, "y": 77465190.20589986 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "cbf617ffe20eaad914864e78", "55300487d26e7ed794eaa09a", "98b07e4065cc634f686308c9", "3c6081979a405d5102f672bb", "5409cab5632b44f3fe5e36de" ], "nodeLocation": { "x": 97454425.41603512, "y": 73471603.90372479 } }, "error_handler": { "name": "childJob", "summary": "deserunt adipisicing qui velit dolore", "description": "eiusmod aute ut proident", "app": "laboris voluptate occaecat ipsum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Vc2-A/~0" } ] }, "groups": [ "48dd66364078e7107a9d40f9", "ca2b8d1128c5d4009020ee62", "f79d86742ddbfeb3c655536c" ], "type": "operation", "nodeLocation": { "x": -16081672.554334596, "y": 38659583.65983358 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "failure", "error" ], "autoRetry": false, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "ee44d3336991e82979bd39f3", "263f4290d788f7bf0c3b1780", "5fbfe199986dd9a4e035652f", "95dc2b75df25cb10110d5b40", "09b40c7bf3dbcb29cad5f837" ], "_id": "8a07c71a-eb7a-7509-a843-9cb711eee75b", "uuid": "7ec51554-3ed7-2091-2b42-8a60245fccad", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": 80059282, "errorHandler": null, "font_size": 12, "created": "1996-12-10T00:57:34.553Z", "created_by": "1327abe6204003f8441e49d0", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1953-08-20T02:08:32.045Z", "last_updated_by": "b9536155ee988bf113b85661", "lastUpdatedVersion": "4.69.69", "tags": [ "mollit nisi", "velit", "cupidatat est officia" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/GU3/S/y/gd9xI,5/~0/NR/~0/~0/~1" }, { "type": "encryption", "pointer": "/~1/XILCT/Lp/Q/~1/~0/~1/~1/TOs9Q9+" }, { "type": "encryption", "pointer": "/hxRF/Tu9F30f9X/FozSCOUA/~1/rb5f4/CuZSWsr3gK/~0/hJz4TS/BGCbLnhio/U" }, { "type": "encryption", "pointer": "/K7Cxm8" } ], "migrationVersion": 47879692 } }
{ "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": [ "e699e450de7bd46202c05d6d", "4c2157d41c6b6c94578ee8fc", "f6866b28a09a650601ca8870", "8f579c531cb27291a82c238c", "408037e91eb5cde7e154e5c7" ], "nodeLocation": { "x": -78088568.97097503, "y": 82133977.65276977 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "09158299e760462f5e2a273a", "0851736ffbf20383776a0346" ], "nodeLocation": { "x": -88087221.3080893, "y": 88143813.90857583 } }, "error_handler": { "name": "childJob", "summary": "exercitation veniam", "description": "cupidatat adipisicing ad aliquip", "app": "sed aute dolore velit ipsum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/nLLXxwQtB/H-8jivx/~1/~1" }, { "type": "encryption", "pointer": "/A/wpVD8O4E/~1" }, { "type": "encryption", "pointer": "/TpjCOd/~0/~1/RPSXO/~1" } ] }, "groups": [ "6f46a9c3e6d72ae118a7234e", "cb2568e22273d825c4235cc3", "ce14e107e1fd3f23651bcf00", "1b0551bb6486d4519535e97b", "20b3f643eb04ed7dfcaec246" ], "type": "operation", "nodeLocation": { "x": 35932198.0167532, "y": 74775303.67949846 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "54563748815299c299a4a769", "5e1d701d62c5708a51b689f5", "f28a865f97d4a085e59f7c57", "993c2d0332e3ab111ac599c9", "4e3dd28f2e261cc41c5bef71" ], "_id": "65223a79-f7c0-7f7c-ebf4-317da8684f36", "uuid": "56936387-c37e-a923-fe09-9a63a6204a4d", "description": "velit est amet in", "namespace": null, "preAutomationTime": 250000, "sla": -19414388, "errorHandler": null, "font_size": 12, "created": "1971-05-15T02:17:55.99Z", "created_by": "6125257dfe4b72e339165256", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2007-07-20T08:37:36.74Z", "last_updated_by": "ba8d0a2ad8bcd2525208999d", "lastUpdatedVersion": "4.69.69", "tags": [ "aliqua et magna dolor sunt", "nisi adipisicing eiusmod", "nostrud Duis nulla mollit", "do" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ySi01BLOhvu/~0" }, { "type": "encryption", "pointer": "/~0/u3n/~1" }, { "type": "encryption", "pointer": "/~0/~1/Qsl4/~1/~0/~0/vC2x7" }, { "type": "encryption", "pointer": "/n7/~1/~1/~0/~0/~0/LvFlNA/~0/mPRNe4/~1/JCRcf6Sa" }, { "type": "encryption", "pointer": "/YfrVk1PBN/Su/~1/~0/~1/~0" } ], "migrationVersion": 22317536 }
{ "$ref": "workflowDocument" }