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": [ "15056b8b99817f52ced99373", "e45df20be65eb9c3b7cf51e6", "824899f2c974ecbb819f5cc8", "de5dc29422708d24288a173d" ], "nodeLocation": { "x": 85067063.71269745, "y": 90570176.05601895 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "d96595c484b6022d44a6db94" ], "nodeLocation": { "x": -71059293.20227253, "y": -16093125.297330067 } }, "error_handler": { "name": "childJob", "summary": "nostrud aliqua dolore cupidatat et", "description": "est in", "app": "consectetur cillum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/WcF-GK/~0/HUTg+/~0/DTuNLmB/~1/XLa.zzEhaw/~0/~0/K7,3uAY" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/cqf/xx/sUp/TptL8K/~0/ViR.lrZYA5/T/~1" }, { "type": "encryption", "pointer": "/~0/dffZMpZP/~1/lCxtelu0m4" }, { "type": "encryption", "pointer": "/NoVD9a2kz/R/JyDU/SWb3,Oi7" } ] }, "groups": [ "faeec178304218c705b6e3b7" ], "type": "operation", "nodeLocation": { "x": 44296299.77320778, "y": -85851639.81725979 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "fcf6f85a1bf7c9f1d4019007", "65a0af628d22f72035fecb54", "d8956a6b84faf849f9eed117", "9607eb1d5a454ca624b6d022", "ea6fb69381547cabebe15950" ], "_id": "3ab810fd-8414-5b09-1a0b-b7cb39ae2928", "uuid": "b2f93dfc-971c-ba35-78d9-e515b6b68721", "description": "sed", "namespace": null, "preAutomationTime": 250000, "sla": 44705641, "errorHandler": null, "font_size": 12, "created": "1951-08-05T18:29:46.53Z", "created_by": "d1f05079ef46a83c2a86cb1f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1971-02-26T01:14:19.539Z", "last_updated_by": "e520d673c300dfedd77697ad", "lastUpdatedVersion": "4.69.69", "tags": [ "irure", "elit aliquip veniam", "Excepteur dolor" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/SO4+iI/Q/~0/~0/c7b/~0/p9EPZObZQP/y4IK.8,hZb1" }, { "type": "encryption", "pointer": "/WIfaNxayj/~0/XGlbqRYj-HM/~0/~1/~1/~0/YOtkbwASNA/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/jt5.Mf9bsf//L+E/XWX/zk/~1/yonf+J+C" }, { "type": "encryption", "pointer": "/iH9rT7/AGPOWC/F/I0ZVA4/ZH+oHcTc4" } ], "migrationVersion": 59211903 } }
{ "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": [ "115e0b40797e526306cf345d", "0b8611ff872f3d7f08895213", "3a37c7ee00c611619243b381" ], "nodeLocation": { "x": -65836357.13859377, "y": -3301932.199761197 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "bdf3a301127d2a5cbeedc84c" ], "nodeLocation": { "x": 15916221.248436496, "y": -74626172.80500896 } }, "error_handler": { "name": "childJob", "summary": "qui aute", "description": "ex labore fugiat", "app": "mollit laboris qui enim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/CI6R-l03FNU/~1" } ] }, "groups": [ "db69622757747ab254766741", "60281d57100231128a70bc7f" ], "type": "operation", "nodeLocation": { "x": 79559410.82044378, "y": -15140680.086341396 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "failure", "error", "success", "success", "success" ], "autoRetry": true, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "eb55c60070d9f9a652ba0518" ], "_id": "79bf250d-e860-1e1f-59a0-838d00098b4c", "uuid": "c4421b5a-e099-fa7d-1afc-d77538ec615a", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": -49083571, "errorHandler": null, "font_size": 12, "created": "1989-11-18T05:00:56.658Z", "created_by": "ad02784206ba7b1068097231", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1948-10-17T21:49:58.862Z", "last_updated_by": "ff3b770211316b05c9e98c90", "lastUpdatedVersion": "4.69.69", "tags": [ "consectetur laborum magna quis occaecat", "Ut nulla aute ea est", "amet fugiat cupidatat eu ipsum", "ad", "pariatur fugiat laboris nulla deserunt" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/a3vQH/jb+NS77p/~0" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/XHFdI.9DJ/dPX/~0/bLvsOGPrU/~1/b" } ], "migrationVersion": 89730357 }
{ "$ref": "workflowDocument" }