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": [ "457e13a22a29fbe32201e343", "7c19ce4636a7702f55408222" ], "nodeLocation": { "x": 51310167.913988024, "y": -61743786.8658365 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "69267ede3b5a244b690d4cc5", "073f7a53b8e5a1df7d4cf75d", "0875c74c1b82470c1c8c96ef" ], "nodeLocation": { "x": 91567520.13350794, "y": -31638227.377101555 } }, "error_handler": { "name": "childJob", "summary": "culpa elit eu", "description": "Ut voluptate ut in", "app": "Lorem in veniam amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/v/q5vGOHht" }, { "type": "encryption", "pointer": "/~0/~1/~1/~0/~1/RgUU.BigVUR/xD1d,olTz./~0/~0/YUn-r4.-j/RZXC.." } ] }, "groups": [ "242c7703df50cb90e5f287b5", "dfaecb07fe7ef6e650cff6a4", "b7166aa8e625b364547ec4af" ], "type": "operation", "nodeLocation": { "x": 31006812.917108834, "y": -5833695.1869625 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error", "failure", "failure" ], "autoRetry": true, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "5d1110bc627d68811c96ba56", "2373b35ef4ad38567cb5f208", "859e9153860b287a92a038c3", "29fc097a8ce8778414f1e139" ], "_id": "22093b6b-3ff3-3d06-916a-cbdb0d475ddf", "uuid": "f9b7b7d6-68ec-28ce-7f45-47ec3a27cd23", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "deserunt", "accessControl": { "read": [ "labore dolor ad culpa", "velit elit deserunt est" ], "execute": [ "aliquip Excepteur do consectetur", "aliquip qui adipisicing commodo cupidatat", "qui velit ipsum", "id minim aliqua eu Lorem" ], "write": [ "laborum reprehenderit", "proident culpa ea", "consectetur", "Duis aliqua" ], "manage": [ "voluptate consectetur sunt nisi amet" ] } }, "preAutomationTime": 250000, "sla": -9912612, "errorHandler": { "type": "ea", "name": "aute ut culpa in cupidatat" }, "font_size": 12, "created": "1972-04-03T15:44:32.179Z", "created_by": "4121aede4e4aa6057bac8625", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1976-06-23T17:08:42.743Z", "last_updated_by": "bb3460fd4b9f3e49df76af8c", "lastUpdatedVersion": "4.69.69", "tags": [ "cupidatat aliqua dolore sed", "sint aliquip mollit nulla", "labore est" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~1/~1" }, { "type": "encryption", "pointer": "/teJAw2q//~1/~1/~0/~0/~1/V4/s-+m/~0/~0/Lpej" } ], "migrationVersion": 84385406 } }
{ "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": [ "d7492a1f158792c91e99e91f", "8963d97a83de12b7e87105f5" ], "nodeLocation": { "x": -50477001.54679617, "y": -31527194.66817993 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0db042b3d347b4fbde3195e2" ], "nodeLocation": { "x": -38644877.10929132, "y": 14595150.541239426 } }, "error_handler": { "name": "childJob", "summary": "in", "description": "ea voluptate", "app": "et", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/fgakPwvj/D/aLUt43LinT/~0/~0/~0/Q8A7Dz/quCM/Kl/~1/K" }, { "type": "encryption", "pointer": "/aCE+o2hRjl4/~0/~0/~0/~0/~0/GYcNGx9" } ] }, "groups": [ "69f5753d2e8174ddcdd15b26", "18b7df46da1c0c5a4ba70a32", "068cda7d11f33aa6728a64cf", "df23370cafb0d5149730166c" ], "type": "operation", "nodeLocation": { "x": -49872354.19250822, "y": 73065296.53055632 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "fb69f9d202f6d0798b92ffac", "2de8f960595a5c7cf790b00d", "8e8691788683c21c0cc467a0", "08759694d5b63ebe21c7d38e" ], "_id": "de31e34c-53e5-1ea9-9ec0-0a14c78c2206", "uuid": "970c48e3-69e3-8161-4d3e-0f02ecbcca72", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": -15943383, "errorHandler": { "type": "non dolore sit", "name": "elit laboris qui Ut" }, "font_size": 12, "created": "2025-01-03T06:49:22.782Z", "created_by": "af6a4bc0706951b61f05108f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2000-04-11T19:17:38.511Z", "last_updated_by": "fc9a674162ceda27f41e79c4", "lastUpdatedVersion": "4.69.69", "tags": [ "ullamco", "aute et", "est pariatur ullamco enim", "elit", "dolor dolore" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/vlBL-3/~1" }, { "type": "encryption", "pointer": "/bZaHVOCz/~1/dkcLF/gAEXE8i8JEr/~1" }, { "type": "encryption", "pointer": "/AfzcYFg/r,mG+GNj//lBY/Zukqgyi4v/LNVc8J8KD/~1/~1" }, { "type": "encryption", "pointer": "/DugwB/kM0L.DL-f/fOQdOZJ/~0/f250n0" }, { "type": "encryption", "pointer": "/R/ZH/~0/~1/~0/KA0xDLZK/i8Im/~1/jbthG" } ], "migrationVersion": 97452422 }
{ "$ref": "workflowDocument" }