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": [ "36ae4c869a5b5fadb34df693", "4ea0981719d6b8d1293729fb", "32e1f20512266476f9717461", "ba3426002943c3afb8875343", "f1f9fe27604800f07b9bef7d" ], "nodeLocation": { "x": 85036747.34564748, "y": 67262661.31761426 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "382825142f5ad6e5e5ee3d97", "97b90800d6423bd652a7ccc7", "cb8658358eba01354b5ab5bd", "9d187ed8fe7c1930b839e676", "c6c898d9b23f9eb2a726edd7" ], "nodeLocation": { "x": -39239075.22762549, "y": 86569755.39064488 } }, "error_handler": { "name": "childJob", "summary": "non", "description": "sint enim aliquip", "app": "Duis incididunt id fugiat aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/w4/uOoNJBJF98/YC9" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/Rq/KRwQqML0q" } ] }, "groups": [ "ebeef0733df088a21198b9c5", "0142cb27f8d53c157da218aa", "e54a2434119d84d49cb0559c", "f84f13da84c972000cd02a8d", "d0be5d2a44f0520549b15267" ], "type": "operation", "nodeLocation": { "x": -57159142.28096644, "y": 20148648.246462703 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "b33f31920f01d1cfb4d4076c", "cc0cf49d5705c4bece5a808d", "dac592dbb6ef111962e589e2", "717273b5d9be0ffb27b4e1c2", "a7989358a519782b05e3a746" ], "_id": "fedac6c4-b3c4-22a4-5287-010248c6c22c", "uuid": "c645ec11-ff62-0147-68e5-63b32d3a4e94", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": -72776700, "errorHandler": null, "font_size": 12, "created": "1954-01-09T10:25:30.314Z", "created_by": "0836f2b3db86962cc9bc7f5b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1987-03-02T22:07:15.174Z", "last_updated_by": "023b5bf21d5cca594d10a248", "lastUpdatedVersion": "4.69.69", "tags": [ "ipsum anim Excepteur dolor", "qui", "ea sit cillum", "in exercitation in in" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/b-nLPShhKX/i2b42B/yndwU-WA6x3/~1/~0/utKdqSw" }, { "type": "encryption", "pointer": "/~0/~0/~1/IBbUP5SdS/~0/zJ0/~0/~0/P" } ], "migrationVersion": 69652527 } }
{ "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": [ "d89c28fbb2b5e53f144a23ab", "44d7821e0867222c056f96c7" ], "nodeLocation": { "x": 56532163.4644174, "y": 67141822.46084142 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a58c2dca0338baddb2693179", "8091ae3d43e9b13057645711", "6081967015c72b60a24bcc41" ], "nodeLocation": { "x": -45018161.45281139, "y": 5135882.382949084 } }, "error_handler": { "name": "childJob", "summary": "do nulla sed incididunt pariatur", "description": "ut adipisicing cupidatat et", "app": "dolor consectetur cupidatat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/cgV/~1/I3hQU/~0/~1" }, { "type": "encryption", "pointer": "/C/~0/~1/~1/jVc/psE,4,gP/BfPH36wajN6/zV2e3jfYv9y/~1/kYnx+/LAMXad9o.Hr" }, { "type": "encryption", "pointer": "/WDY/~0/bViRe5X/~0" } ] }, "groups": [ "c47e5a09a823d24077e2fb88", "284e21f626368b55ed7f1acc", "f061e67c3327079005b9583a" ], "type": "operation", "nodeLocation": { "x": -49649384.12661426, "y": 64831496.44730711 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "80663220b2d3e296279daea6", "5f479d374c6a310ed41596d2", "9552b37257ba5f9aaa466e53", "ff5bb46905b19c1d8a61f17b", "fef02a643530fc7751a19a66" ], "_id": "f58b1f09-7729-c989-c75e-f2311daf745c", "uuid": "a55bfaff-f533-e9b8-800f-cb429952076a", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "reprehenderit eiusmod labore", "accessControl": { "read": [ "occaecat minim", "sunt fugiat", "minim nisi", "in Duis ad elit eiusmod" ], "execute": [ "laborum non" ], "write": [ "Excepteur minim nisi et", "Excepteur", "enim dolore quis", "laborum labore minim pariatur" ], "manage": [ "in do dolore in aute", "occaecat ut", "est adipisicing Excepteur elit Lorem" ] } }, "preAutomationTime": 250000, "sla": 87502954, "errorHandler": { "type": "magna in", "name": "nisi nostrud ipsum" }, "font_size": 12, "created": "2018-05-25T08:12:45.122Z", "created_by": "a4e03dccff8dab022fe885d1", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2010-11-27T15:21:07.952Z", "last_updated_by": "9e61a9dcf00877f35f69888f", "lastUpdatedVersion": "4.69.69", "tags": [ "nulla Excepteur fugiat velit et", "velit id incididunt officia est", "labore proident occaecat", "dolor veniam ut velit", "tempor nostrud deserunt fugiat sunt" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/ThjaAW/R5UwH8aS/~1/~1/Y9Nf3OlRF/QpLf/h/V,7YoO7csDZ/~0/~1" }, { "type": "encryption", "pointer": "/~1/xP11ItX/qnE/i+ZyhYQTdI8/zAUAgFwvm./oZzT/PUN0Dk8/yGVEE-bD/g/~1" }, { "type": "encryption", "pointer": "/~0/F/~0/~1/Z9u28P2KXSH/~1/~0/rZTCBLk,/~0" }, { "type": "encryption", "pointer": "/lA/m/J/6Ik/,P/~0/~0/~0/q/~0/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0" } ], "migrationVersion": 33674115 }
{ "$ref": "workflowDocument" }