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": [ "0f6532df18c1a0c9aa775434", "a0fb4505047e23fdf89f6e41", "d77eb1a52f0d5b2f2cb49dcc" ], "nodeLocation": { "x": -74474560.24841884, "y": -32595461.952452302 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9a3bd0e977d968e8ae524d60", "6874e0976d4494a74e7b1573", "a6aa0a10e1f5a23eab5f6827" ], "nodeLocation": { "x": -16850552.337822184, "y": -80914361.84452724 } }, "error_handler": { "name": "childJob", "summary": "nostrud reprehenderit", "description": "dolore", "app": "commodo cillum ea esse", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/prY-mbXD/~1/tYOnMi,6rlq/XZAQiaI1j" }, { "type": "encryption", "pointer": "/Xy/~0/eUxkUqMk-E6/~1/g/I/KNHQH" } ] }, "groups": [ "a1ad5bc2d57bfab7f0ded9ad" ], "type": "operation", "nodeLocation": { "x": 57703901.28240025, "y": 72968536.37124011 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error", "success" ], "autoRetry": false, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "a6f78c7f2a9b563de8d04c4e", "1fc05f5f43ecbdfe6633d5da" ], "_id": "a48c19f0-3c84-340a-3435-938c7029b2e0", "uuid": "56cbf4b1-a363-63d8-6fa6-7a2d5b8ced62", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": 62153520, "errorHandler": null, "font_size": 12, "created": "1972-11-20T11:35:20.096Z", "created_by": "347f948245078f632d48f7dd", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1986-12-06T20:42:14.218Z", "last_updated_by": "0d1f908dfb4f2858edf12c08", "lastUpdatedVersion": "4.69.69", "tags": [ "dolor" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/S-KS3SUzBbf" }, { "type": "encryption", "pointer": "/~0/~0/HF3GlsApD" } ], "migrationVersion": 55539164 } }
{ "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": [ "35c583f8e3c2470770398b41", "cb64f650da4e39965845f3b0", "c09706207ace0258d73f37f6", "b171d5c70793961716832fb2", "a1a9e5e8fd704de39c345a1c" ], "nodeLocation": { "x": 59352094.286565155, "y": 56416884.9000451 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "b39e31d09a039b634a44d5b7", "7ce8c9bc4829236df40ff76c", "6e232537145b3810cdb78ac7", "e6353a4c0fb18694c21e5acc" ], "nodeLocation": { "x": -34247642.55126034, "y": 82303745.49315435 } }, "error_handler": { "name": "childJob", "summary": "ea esse nulla dolore", "description": "sint ut ut", "app": "est dolor reprehenderit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/tw6N-99gR.7/~0/~0/~0/~0" } ] }, "groups": [ "e5f1d371086762bece308d5c", "83f9fe0eb88891581b5b40e9", "b4a7e7cd35cd085ea297d67d", "211f443324c6ca9df04fdd62" ], "type": "operation", "nodeLocation": { "x": 50146290.966414064, "y": 97585423.79915455 }, "deprecated": false, "scheduled": true, "retrySettings": { "state": [ "error", "failure", "success", "failure" ], "autoRetry": true, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "a78946ca24c76346abb20a6b", "fe76a602dcaa7817f7650341", "74e042bcc8fb5f62905cb4ad", "99c47c24ddbd80c40799d6ad", "9fa845b44cd37066270df74c" ], "_id": "46fa9886-9011-fa2e-fbbd-e9cd6f4e77b6", "uuid": "95b13169-afdc-012d-35a5-32b9e41d7aa5", "description": "Ut adipisicing commodo elit aliquip", "namespace": null, "preAutomationTime": 5000, "sla": -6508797, "errorHandler": { "type": "deserunt", "name": "Duis veniam Ut deserunt" }, "font_size": 12, "created": "2021-10-27T10:30:45.348Z", "created_by": "9643ad6d54c230b3601019ca", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1952-01-23T01:01:19.903Z", "last_updated_by": "445732beee11b05aeb6a7ab2", "lastUpdatedVersion": "4.69.69", "tags": [ "Ut", "sed ad laboris", "occaecat deserunt magna" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/mDv" }, { "type": "encryption", "pointer": "/b21/p6+w2pC" }, { "type": "encryption", "pointer": "/A/~1/N0HCVMN/Y7x/K9yYJW/~0/~1/h." }, { "type": "encryption", "pointer": "/oYJmkK/~0/~1/uKIW1EH/HQO" }, { "type": "encryption", "pointer": "/Vdv9Ckm/7/MU/F/~1/~0/Mg+9+H/~1" } ], "migrationVersion": 66467881 }
{ "$ref": "workflowDocument" }