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": [ "561055d13845ecc43d971b73", "72cfa1d8315ccbd02563196f", "3030f3b719d34e48f3de88d0", "4ac549d276d5dac39f1da8bb", "0af4fd6e095bcefe25e74901" ], "nodeLocation": { "x": -86371941.33573334, "y": -42501337.63499351 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "d14785ef2d8a596743d84034", "da10d41b591d6854926844d4", "55f60c2863bd76cb4e970144", "8e65c1f7e533d0d7b5beea2c", "edae158715ee562311eed17d" ], "nodeLocation": { "x": -10501880.115701973, "y": -87763778.61312298 } }, "error_handler": { "name": "childJob", "summary": "nostrud officia", "description": "Excepteur aliqua ad", "app": "aute consequat amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/O5CkE/~1/brs2K30fn7Q/b/63Enr/~0" }, { "type": "encryption", "pointer": "/~1/~0/~0/LXdTs5B/Jg6Di74rgYb/KxP./~0/Oyiq/tE" } ] }, "groups": [ "ef29e580c48fa9edab038723", "0fe66dff4974da8285d02918", "db5808012f0ed60dceb5c237", "1f08fcb921c2dc2c99c78fac" ], "type": "operation", "nodeLocation": { "x": 45256803.847340524, "y": -28792183.71809089 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "c0f24462bf98a7734dd187ac", "a5ce7984eb075eb8b4c9f17e" ], "_id": "7b8e6462-aac0-c23b-0954-f28e2283752e", "uuid": "da7e4be0-e771-4254-e1ad-0a2c51d429f9", "description": "cupidatat elit veniam commodo esse", "namespace": null, "preAutomationTime": 5000, "sla": 29193200, "errorHandler": null, "font_size": 12, "created": "1955-01-29T03:58:00.936Z", "created_by": "333e4fd6a41cb8f220cc5fc6", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2018-09-21T11:35:11.496Z", "last_updated_by": "a0b5cc5eaf7e5d17e1db9e38", "lastUpdatedVersion": "4.69.69", "tags": [ "Excepteur", "esse", "ipsum sunt sed do" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/zwL/Bi9Vt3/yfWaK/~0/~1/~0/~0/LqdUXZai9/~1" }, { "type": "encryption", "pointer": "/w0wQwxBEd/HJio6/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/HNpvksvkhq/~0/W7/h0cpQDD/~0/sTqeY/x2JrIShDtc/Q4Ubu-/~1" }, { "type": "encryption", "pointer": "/~0/~1/smMG6cW,/~0/n/u6ItF" } ], "migrationVersion": 60530885 } }
{ "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": [ "ae837c495d6ffdee6d1d9b2b", "b1e193e228d2b43a7e4648e3", "d811102f622b5290313dc035", "8af6bbc73124d97d0a170cc5" ], "nodeLocation": { "x": 14552414.950136587, "y": -94403661.08030394 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "53f592298b3f66e4628cf706", "c362c616d1167395be65838d" ], "nodeLocation": { "x": 90344381.71215764, "y": 73501876.15088007 } }, "error_handler": { "name": "childJob", "summary": "cillum", "description": "in dolor", "app": "enim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1" }, { "type": "encryption", "pointer": "/~1/~0/~1/OqAVO/~0/~0/QH/~1/xJJx1qHkO/~0" }, { "type": "encryption", "pointer": "/~0/Av4/~1/~1/~1/NH/~1/~0/~0/kXnu/uV5Pv4Vw6R1" }, { "type": "encryption", "pointer": "/~1/x-3Cb4u.c/~0" }, { "type": "encryption", "pointer": "/~0/~1/MpoTUed/~0/qG" } ] }, "groups": [ "ffd1d6ec9c01cabaed992941", "7e1de5912eb8c75989f00063", "60ee76d0daea107552888afb", "d31075387e153ade63839af9" ], "type": "operation", "nodeLocation": { "x": -11700172.871780798, "y": 96008037.17691177 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "2b9b01bf412a0a2d92163463", "a81cf6fdf5e2487c30b39cc5" ], "_id": "ad2f54f7-97c3-3a44-1268-8ed6ce45a843", "uuid": "3f7721e6-c6c1-a62c-685a-a6d0b3d45e97", "description": "velit", "namespace": null, "preAutomationTime": 5000, "sla": 42370176, "errorHandler": { "type": "cillum in sed cupidatat enim", "name": "aliqua eiusmod" }, "font_size": 12, "created": "2020-08-15T15:28:13.137Z", "created_by": "405d5a7538f37635b6f2f62c", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1973-01-25T03:59:15.595Z", "last_updated_by": "a256f14848ebd760c56cfe4c", "lastUpdatedVersion": "4.69.69", "tags": [ "laboris amet magna", "incididunt Lorem eiusmod quis", "cupidatat Ut ut occaecat" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/sU,qF-,15nd/~0/bT5OyJlZk//Vx/~1/~0" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/ENyQoOh/~0" } ], "migrationVersion": 9542547 }
{ "$ref": "workflowDocument" }