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": [ "aa71cd54dc9b00ec61263f7d", "40de8f10c624728d4ee266f6", "1ad04bc6c93b1b26d0000fab" ], "nodeLocation": { "x": 61272045.92914599, "y": -56482524.05450811 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "6847c44446217abf2bd92c82", "cad7488930b9d268e2080b91", "2113635bab183afe3b22ff92", "bc68e0abe4897830d3b9b109" ], "nodeLocation": { "x": 51716869.21020436, "y": -28261697.385461956 } }, "error_handler": { "name": "childJob", "summary": "esse", "description": "reprehenderit", "app": "incididunt adipisicing exercitation aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/Mm/ymPhfWcGts5/~0/X8,v/riWb,RNok/RiaoSU" }, { "type": "encryption", "pointer": "/UIh-0.A-/Q7As,rU6D/~1/XignYMPYUda" } ] }, "groups": [ "604accafa5be97ba5ba8231e" ], "type": "operation", "nodeLocation": { "x": -70231653.16458958, "y": -59869102.17375443 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "ebad55d4e69906b2ee3757c2", "a0ac0895787527693b2c20c8", "a5b8229284e3a18f4f0df258", "8a04bbca8d6bb3143369c48b", "ddc67484ded762eeb1b54e11" ], "_id": "ea437f19-e025-1fd8-7c8f-fd3218ada03d", "uuid": "498d2405-4fca-738d-e971-90a2886fb94e", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": 82288881, "errorHandler": { "type": "amet magna occaecat incididunt", "name": "voluptate" }, "font_size": 12, "created": "1985-11-03T21:56:00.356Z", "created_by": "f099eebd44c975e917bc62db", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1964-03-30T15:09:53.6Z", "last_updated_by": "979674f1c0213449354da0bb", "lastUpdatedVersion": "4.69.69", "tags": [ "ex", "dolor", "nulla" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/mx9aoiKMBfI/E73SiiHFt" }, { "type": "encryption", "pointer": "/~1/~0/KaFu/sdZ4F/OU.px99UU+g/Oqk+Vnj/RA44" } ], "migrationVersion": 28148523 } }
{ "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": [ "44011dd9eb52e8e134cd0e7d", "221d28a6807542b0cfe3df07", "9e210b10b23d43987bb63fd6", "04e87599ef5c5e0561ac8b67", "b2b042ffc5bac6551820471b" ], "nodeLocation": { "x": 14758863.434303, "y": 93781020.84979334 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "02e1e715b14c485216a52c98" ], "nodeLocation": { "x": -85802620.66273269, "y": 30365717.230971783 } }, "error_handler": { "name": "childJob", "summary": "minim magna", "description": "in enim laboris reprehenderit dolor", "app": "do occaecat dolor tempor ea", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/vOmFqTq/~1/eHekE/~1/~1/~0/N7psA4bHTh5/x/fSakR4vJ/y2RC" }, { "type": "encryption", "pointer": "/Ot1+K5/~1/aoxc" } ] }, "groups": [ "1c500999389a43543bd406f4", "ada2b07ead4cb8300a3292ff", "fd69efd495eb05e899b718f4" ], "type": "operation", "nodeLocation": { "x": 22433387.44754237, "y": 92980914.38391757 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "failure", "success", "failure", "error", "success" ], "autoRetry": false, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "c531480c13a15dc08b263fed" ], "_id": "7b51623f-8c76-85ef-2e71-ab7eb88591ba", "uuid": "8f13bd1f-01fa-951a-87e1-047b78b79845", "description": "nostrud labore reprehenderit", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "ex in veniam adipisicing est", "accessControl": { "read": [ "labore", "aliqua exercitation dolor", "Lorem incididunt", "cupidatat Lorem sint", "Excepteur ullamco in ut" ], "execute": [ "do reprehenderit cillum dolore sint", "velit proident officia laboris", "in Excepteur adipisicing aliqua", "commodo ea nostrud ad", "id consectetur ad reprehenderit eu" ], "write": [ "aliquip pariatur ut Ut" ], "manage": [ "eiusmod anim" ] } }, "preAutomationTime": 250000, "sla": -5020806, "errorHandler": { "type": "cillum", "name": "irure" }, "font_size": 12, "created": "1960-06-21T10:16:15.223Z", "created_by": "00554fd8f186f83580b460ac", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2009-11-27T19:32:27.624Z", "last_updated_by": "958764ab332fbae35622b7dc", "lastUpdatedVersion": "4.69.69", "tags": [ "deserunt adipisicing ex aute eiusmod", "non in Ut sit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/gg9zz4Iv/bQ/n1S/~1/~0" }, { "type": "encryption", "pointer": "/eHQ0BmZF/HuP/~1/~1/~1/~0/~1/bn/g7-aae" }, { "type": "encryption", "pointer": "/~1/Eoe" } ], "migrationVersion": 48907438 }
{ "$ref": "workflowDocument" }