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": [ "5dd1558faa2b19a1dc881257", "28b270a93c4e6de1a06697dc", "551ca7e9fef2720ceddc66eb", "48cc04654c8c80dfda7fa43f", "83f51a405bf895d459f5996d" ], "nodeLocation": { "x": -7064507.222856164, "y": 90691465.54309827 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "896e6f5c5a2b6525d47be52d", "b575d88bacfdfc3c24238a64" ], "nodeLocation": { "x": -49357394.41840452, "y": 39861186.87750766 } }, "error_handler": { "name": "childJob", "summary": "Duis in", "description": "velit ad eu esse", "app": "pariatur non dolor nostrud eiusmod", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/B2m/~0" }, { "type": "encryption", "pointer": "/~1/~0/J2G/jPmu4G10U--/~0/~1/~0" } ] }, "groups": [ "b9e5903e033dc10a14361d02", "41c1f450a0be3cc5167388ac", "3062ccb2aaca28522adecd32", "0356ac099fca0d84de786c99" ], "type": "operation", "nodeLocation": { "x": 64750972.80276886, "y": -56965377.47963562 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "success", "error", "success", "success" ], "autoRetry": true, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "a13e8d3a18e288d33e3d4fa2", "5aba3f83ab17192adb04e187" ], "_id": "e15965dd-3a08-eb2b-980e-8f685e7cb502", "uuid": "01daaa89-5260-125f-3874-315880fc0df4", "description": "do", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "dolor id", "accessControl": { "read": [ "in aliquip sint", "fugiat sint nisi cillum", "do commodo velit eiusmod cillum", "proident", "cupidatat Lorem eu in ut" ], "execute": [ "ex ut" ], "write": [ "ipsum" ], "manage": [ "ea sed", "in ut exercitation non", "deserunt pariatur veniam consectetur minim", "nulla do esse irure culpa" ] } }, "preAutomationTime": 5000, "sla": 59627335, "errorHandler": { "type": "nisi ut ipsum amet cillum", "name": "minim veniam eiusmod" }, "font_size": 12, "created": "2024-06-23T13:02:04.482Z", "created_by": "a1e29882c6b566d6094a3064", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2008-11-16T16:06:53.633Z", "last_updated_by": "53fa0abffbb72ac1625b2ffc", "lastUpdatedVersion": "4.69.69", "tags": [ "exercitation veniam", "qui", "nulla ex adipisicing et minim", "et Ut", "Excepteur aliqua consequat" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/yuKmWydO/~0/W0/M7L7njK/~1/~0" }, { "type": "encryption", "pointer": "/~1/~0/uvvcyx/sw/~1/BXv/HcxTx7ucPu/Y3/~0/lSOYdI/~1" }, { "type": "encryption", "pointer": "/~1/~0/H47wyPdOfXl/~0/J0/~1/~1/BI/b1u4/~1/toi9GD6" }, { "type": "encryption", "pointer": "/dzFJH7qe9Bf/QsrvT+/~1/~0/EBO/WBOQ9/bAH8PFq/Jtt/yeZvYNC,U3/p1/q" }, { "type": "encryption", "pointer": "/ac48F/~0/md433/K/2GNhC/P/~0/e,LcNvZs/ctk1yyAhY" } ], "migrationVersion": 18332583 } }
{ "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": [ "4aaf98d215a33c7921597a3c", "e1f08fcf8aca6cb1dfba5f87", "f1c7947d2fa51029cc3bdd57", "a145c658dd5b22db3d08516a" ], "nodeLocation": { "x": 88092285.65362176, "y": 56934294.016779065 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "605bfcc3ca4e50da16d279fd", "6f3ff2a4f21ddd58fb76b935", "a34c764eff3dc48c3b94e879", "0eeaf6e2fa2876f27cbc4004" ], "nodeLocation": { "x": 38563440.09782991, "y": 49272298.07423514 } }, "error_handler": { "name": "childJob", "summary": "ullamco", "description": "veniam ex in", "app": "consequat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/~1/f/uFGTQ60+88F" }, { "type": "encryption", "pointer": "/E/GU2RDt/pI2/4W5e/AV/UF,9kJmm/wGLXmIOj/X-L/~0/~0/~0/uAZk9/oxI" }, { "type": "encryption", "pointer": "/uJF/j/LiqA/qm4/~1/~1/Y13PMbOkcC6/~0/~0/ym5hT" }, { "type": "encryption", "pointer": "/~1/IjdCCN/O9jLZoWJz/~1" } ] }, "groups": [ "3f2bd5ef7da3191f245dbbde", "774c89ea2a362414bcc8e24c", "f0c6397a8e6305adb368a6f2", "48b0654078416c6dfa6bb9b7" ], "type": "operation", "nodeLocation": { "x": 4567859.349089339, "y": 7324885.308243051 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "error", "success", "failure" ], "autoRetry": false, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "79f9a374b2f85c5a2fb7f03a", "7f2a557d4a4945998e1c8237" ], "_id": "1374f489-e31d-1371-7fb5-b4d1c2d51b60", "uuid": "484a251a-50ec-46bb-b1b0-33674af9619a", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": 87953794, "errorHandler": null, "font_size": 12, "created": "1988-11-03T10:32:01.032Z", "created_by": "d26589f6c4e0fd5072c22b55", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1980-11-30T06:33:36.194Z", "last_updated_by": "363ab2c5f3fcf4cb64c650fc", "lastUpdatedVersion": "4.69.69", "tags": [ "commodo ex eiusmod sed consequat", "sint pariatur", "fugiat et anim ad Lorem", "sed", "cillum commodo nostrud ex" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/I/~1/p+WldK5/~1/XE" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/UpfLb/A9//CG/~0/DEoDFvj5z/nDe6o/~0/sps6cq1SN/~1/KqF+1RnLc3/Rp54cpU" }, { "type": "encryption", "pointer": "/P,95HFn/nQ/~1/~1/u8fiK79b7/~1" }, { "type": "encryption", "pointer": "/~0/~1/VN3N/~1/~1/P3kdG./F8rduomG/~0" } ], "migrationVersion": 23865920 }
{ "$ref": "workflowDocument" }