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": [ "fd0f7ac7c6a967d93b64bb39", "514594a78bff30f4d2a12b88" ], "nodeLocation": { "x": -48696980.26694964, "y": -40912323.80863463 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4aa753543bcec94c416cfd2c", "83666ff5774b8e58bce3c5dc" ], "nodeLocation": { "x": 57899873.10239765, "y": -14855073.928245991 } }, "error_handler": { "name": "childJob", "summary": "officia", "description": "amet cupidatat Ut", "app": "in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/s/jaoSN6,t/TYfdfo/~1/JDZen/~1/~0" }, { "type": "encryption", "pointer": "/EzkI8w3+pu/mmGUp/U/~1/aCus/k,wBqicn/~0" } ] }, "groups": [ "df0cb148c2b59b7a9a0d71eb", "7e4b7b4c431fe3fa9ea0af92", "bcdc79480bd8026daa390f08" ], "type": "operation", "nodeLocation": { "x": 10457332.097054243, "y": -18058655.116394415 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "f4aec6149e6e2604d9172db0", "c2da2e32145995ccedd7982c", "fdb95ee96f450ee2a175cc00" ], "_id": "9edcd308-66e0-3a00-6ff9-26a9f98569fe", "uuid": "3b083cac-9c3f-b30f-dc3b-928e357a1328", "description": "mollit Lorem reprehenderit", "namespace": null, "preAutomationTime": 5000, "sla": 72514524, "errorHandler": null, "font_size": 12, "created": "2022-11-05T17:06:10.704Z", "created_by": "9cd5664ea827394cd34ccad5", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2017-11-26T07:48:09.577Z", "last_updated_by": "0776165ab14ad7457e737887", "lastUpdatedVersion": "4.69.69", "tags": [ "ad non sit cupidatat Duis", "consectetur adipisicing exercitation dolor officia" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/RydFcNaz70x/~1/~0/~0/FoxQA" } ], "migrationVersion": 59952621 } }
{ "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": [ "a90d6f5be8d1db48a0c83656", "4bd0fc086502ad10366a9522", "05d2475b6983fc61bcc472ee" ], "nodeLocation": { "x": 69206052.00411716, "y": 94958392.79974753 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "fb95d8d64cdc2bbfc22d250d", "e15fc42175298129cd73ac1e", "195877eb9645d8e33d228a39", "c8555d32b63e9a40a89c090a" ], "nodeLocation": { "x": -3636851.746296972, "y": -15936881.103836551 } }, "error_handler": { "name": "childJob", "summary": "consequat anim commodo", "description": "velit Ut", "app": "nostrud labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Ff/cQF-1tsniHl/ZsN1K5HQ" }, { "type": "encryption", "pointer": "/ZbUc4YYLJ/~0/gY/~0/y/~0/utX8OLO+wH/" }, { "type": "encryption", "pointer": "/gn98/AqAIS0mIIa/P2N0TU/u/UqCiU/e2tOq-TG/Hu9ltgsL/~1/tIt" }, { "type": "encryption", "pointer": "/~1/DS,U/-b/~1/IVS6aI6F5/~0/vfqa/hDJXHmD6/~1" }, { "type": "encryption", "pointer": "/~1/UPPs/~0/~1/fwejKqDkgxf/W-" } ] }, "groups": [ "b6ec61030cc43b93107cdaed", "07a817d503769b4774148ee5", "0e551bec31f435ab0059423e", "de77219c7db677a198282e44", "9da9aff237d9444b8bfc5f95" ], "type": "operation", "nodeLocation": { "x": 17699922.05074899, "y": -36809045.49523487 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "5e91ba00bf1346c1af0274ed" ], "_id": "715100fc-b6c5-66b1-5420-61ea356bd0f3", "uuid": "93c8592d-a481-380d-b83f-34331ae266c9", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": 12761141, "errorHandler": null, "font_size": 12, "created": "2004-06-23T16:53:42.857Z", "created_by": "ed145ef6a193f78ed98327f4", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2008-01-12T19:50:28.31Z", "last_updated_by": "add745c853499b829af0bade", "lastUpdatedVersion": "4.69.69", "tags": [ "dolor cupidatat", "est irure nostrud esse", "esse ad sed id proident", "amet consectetur", "mollit Ut" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/ECAOMPl/~0/Rz/Hjg/yn/q2rxN/CyFRZU6fc4V" }, { "type": "encryption", "pointer": "/C0dZeNf/~1/~0/~1/AzbX9/G.nfs2g" }, { "type": "encryption", "pointer": "/wDT8tT./lU0/~0/PB4xkO" } ], "migrationVersion": 36138509 }
{ "$ref": "workflowDocument" }