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": [ "f03ea34d2c1c7d9be751a98a" ], "nodeLocation": { "x": -84196679.75313176, "y": -40531904.41676873 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "88b5d631bb6ed076494b21c3", "da6a55184666054e7c62c05e" ], "nodeLocation": { "x": 11634997.396980166, "y": -90861230.67872691 } }, "error_handler": { "name": "childJob", "summary": "officia anim est in elit", "description": "labore Duis irure dolore Lorem", "app": "irure occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/JMhgZaaM9U/K6/OYD.G,YI88/j7+QptQDK/CBiATb5/~0" }, { "type": "encryption", "pointer": "/~0/~1/aq9QDKvl,c2" }, { "type": "encryption", "pointer": "/bBXEeF77x/URge85HtX/abRCB./~1/~1" } ] }, "groups": [ "c0e3b1495f3c3c83418f8cf0", "dae9d1b829801d28660c689e", "56e0662682ccbb1eeebf036f", "b3da4f7d422b3a819fad5abf", "858457a6b18593b2c11c6bde" ], "type": "operation", "nodeLocation": { "x": 94879898.18370184, "y": 30978404.740381077 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "7a2d4445996ba97a39f832f4", "6f6761b8f92fbf2c6e16be83", "8b05640ce0f0cc8578b2c357" ], "_id": "94941c02-5300-48b4-fdb0-01ffc382c6cb", "uuid": "40b191c3-fa88-71a3-181e-ef6292457f0a", "description": "laboris consectetur sit magna", "namespace": null, "preAutomationTime": 5000, "sla": -49809145, "errorHandler": null, "font_size": 12, "created": "1977-04-04T09:48:44.328Z", "created_by": "5d2a49b34d9b694fc0350cae", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1967-06-29T15:17:56.448Z", "last_updated_by": "2445cd8830655a09cb2b5c62", "lastUpdatedVersion": "4.69.69", "tags": [ "pariatur nulla et", "incididunt Duis fugiat consequat in", "fugiat ut", "dolore Excepteur fugiat in eu", "dolore reprehenderit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/gn6DmGZN/o/8z8/~1/dR9Uq/x/~1" }, { "type": "encryption", "pointer": "/~0/~0/eZeA/~0/~1/~1/C/N/6V0B5/bYfvf,EV" } ], "migrationVersion": 18102716 } }
{ "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": [ "cb270a3bcc76ed2df0e0a8a4", "92a7ecc3880ee5612a76c478", "ea3fce980a31cea78956a7ae", "15cbe1720de0844dc5c65654" ], "nodeLocation": { "x": 22406244.12738499, "y": 8949307.46763958 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "116853129247e619fe437f95", "502fbd4679b6f2402ffd2496", "863088f00092450f7bea2b45", "4189bd55b69809fa2b26d9f3" ], "nodeLocation": { "x": 83105935.05020627, "y": -13429576.887086943 } }, "error_handler": { "name": "childJob", "summary": "exercitation", "description": "culpa qui officia", "app": "minim enim eiusmod labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/iA6K/~1" }, { "type": "encryption", "pointer": "/~0/~0/~0/hr" }, { "type": "encryption", "pointer": "/YwOUYQ6O/~0/r/BVDG/TUU06OEV/~1/~0" }, { "type": "encryption", "pointer": "/~1/H4zqn/~0/~0/QZuD0I/gD+n/znxw4RCvcw/bGs8qK/ow36mS.H8Mf" } ] }, "groups": [ "4b9c8846dd840fa2e9bb20ad", "5db0c26da3e2dd05278d3660", "a99c8e1d118ba93169463ea2", "c2eeb6dd93f3856a26f5d28d" ], "type": "operation", "nodeLocation": { "x": 92141163.55304283, "y": -83547649.54461001 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "b0bbabadd9df9bc64254d909" ], "_id": "fbbb9e77-3a9a-be9d-24bd-a8a97dd59e14", "uuid": "099377b0-178f-e8a9-67f4-887f38d2c11f", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "aliqua in incididunt in", "accessControl": { "read": [ "ut ex", "non proident esse laborum", "ut" ], "execute": [ "ea est incididunt", "minim est dolor", "qui" ], "write": [ "sit pariatur aute" ], "manage": [ "minim voluptate magna", "cupidatat" ] } }, "preAutomationTime": 5000, "sla": 90968601, "errorHandler": null, "font_size": 12, "created": "1951-04-05T04:21:22.692Z", "created_by": "8be26e584ac75c53a90b4d8f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2007-03-27T22:44:13.572Z", "last_updated_by": "e3d65bedee06491b024a4ff8", "lastUpdatedVersion": "4.69.69", "tags": [ "Duis", "ipsum reprehenderit elit officia nostrud" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/weY/EE9/+,y6/zM/~0/Qoil-/BX/ivefu" }, { "type": "encryption", "pointer": "/~1" } ], "migrationVersion": 96130964 }
{ "$ref": "workflowDocument" }