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": [ "ee31ccd165cf50131915e1e7", "d573521804ecc4ef9628c38a", "d7be7af8bd5e56a6f178eb7e", "3c05aa06ad1d69e939a2deda" ], "nodeLocation": { "x": 2142837.9294442683, "y": -21939627.671288386 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "f0f44f4a95798ec1cdbc79b4", "3985d4e8668c21d60ac4c564" ], "nodeLocation": { "x": 57428683.31619033, "y": -83208418.62831014 } }, "error_handler": { "name": "childJob", "summary": "ad voluptate quis", "description": "anim magna officia", "app": "minim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~1/ovLLIpoJ4w/~1/y5/MA/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/~1/vq-eH/~0/~1/Du5" }, { "type": "encryption", "pointer": "/~1/~1/~0/~0/xBWu" }, { "type": "encryption", "pointer": "/e/~0/l7pzD./ORueW824/V4yqrbZ7/~0/~0/~0/uxqOR4D/NvKKHh/~1" } ] }, "groups": [ "8a4f2f2563a8a739283971bb", "4bb25bbeb25f77524dc11f26", "d71b3aa7245a5ed7ce00cb8d", "0b2b54fe0abffc9b549cae73", "bc049d69378c071cb5da18e2" ], "type": "operation", "nodeLocation": { "x": -21384489.213760376, "y": 88828255.73297048 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "438638fe82c05e1509c84f60", "36616d66dff10bb7f65cdc84" ], "_id": "43ce7471-e09e-9da8-e9a3-faefc3ca7f9a", "uuid": "048963bd-443a-5331-c1c9-d8196c9519bf", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "incididunt dolore enim", "accessControl": { "read": [ "et aute officia eiusmod", "ut veniam aute sed", "in ea aliquip fugiat incididunt", "Ut id deserunt commodo tempor" ], "execute": [ "minim deserunt eiusmod do in", "culpa ut officia nostrud non" ], "write": [ "sint", "eiusmod sit ipsum velit" ], "manage": [ "consequat sint", "dolor proident deserunt veniam eu", "dolore sint magna in occaecat" ] } }, "preAutomationTime": 250000, "sla": 16598086, "errorHandler": { "type": "non tempor", "name": "elit mollit pariatur" }, "font_size": 12, "created": "1968-10-24T09:42:31.833Z", "created_by": "76c7814202fd45c3996a893d", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2016-01-04T23:21:57.171Z", "last_updated_by": "1af942188a7ce82f6d906c51", "lastUpdatedVersion": "4.69.69", "tags": [ "irure" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/y/~1" }, { "type": "encryption", "pointer": "/~1/ie7uR/xd/L./~1/J/tfK7M/~0/fCEVW/~0/K" }, { "type": "encryption", "pointer": "/~1/~0/~0/Tgv/YIzWr,w" } ], "migrationVersion": 35504290 } }
{ "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": [ "bc8b50481fc647b73479d43e" ], "nodeLocation": { "x": -34554164.47438266, "y": 73193047.69573995 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "906ea3de34a0c1f09c5f5a18", "7bb6c8121b88cbe7d031bdb9" ], "nodeLocation": { "x": -78377523.40454483, "y": 41667211.16247666 } }, "error_handler": { "name": "childJob", "summary": "aliquip ut", "description": "sunt occaecat aliquip cupidatat", "app": "cupidatat dolore est", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/X0f/xqez/y/~1/JYJfWd" }, { "type": "encryption", "pointer": "/uG/~1/~1/~0/k" } ] }, "groups": [ "b91547244690ccccab9aec94", "c03b57966073cce76af6ac2b" ], "type": "operation", "nodeLocation": { "x": 49079352.94566691, "y": 19801380.64325981 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "failure", "success" ], "autoRetry": false, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "7258708154ac5d44490174b5", "cfcf354c14ec811f0efe5cc8", "b050e173126becdf24e71c7d" ], "_id": "fecf8ed2-4850-ba93-148b-e6b8656c73a2", "uuid": "7d27b510-b9e2-a05f-23e5-18e3c7d8a9d2", "description": "elit ut exercitation officia", "namespace": null, "preAutomationTime": 5000, "sla": 67437406, "errorHandler": null, "font_size": 12, "created": "1996-03-05T07:23:28.596Z", "created_by": "667a7eba12d35d4aeb8e9b95", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1958-12-13T19:47:11.494Z", "last_updated_by": "3116e0884cd11084dc4740a1", "lastUpdatedVersion": "4.69.69", "tags": [ "ad ut sit in laborum", "id dolor", "dolore", "do amet dolor esse", "irure" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/acrWu/oTghPuGyN" }, { "type": "encryption", "pointer": "/a/EpIhKzx6/~1/~1/~1/I/stfAiOQL/~0/~1" }, { "type": "encryption", "pointer": "/~1/~1/sx-W2jh/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1/~1/q9I5GhF3/A/~0/wa8,2LG/KC/~0/~1/J6zACr-pK/~0" }, { "type": "encryption", "pointer": "/O783fMpcc/~0/ZyPyV/zwq5m/~1/PVBeC8hJ/l/~0" } ], "migrationVersion": 20793397 }
{ "$ref": "workflowDocument" }