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": [ "81452ff0633733680f446c14" ], "nodeLocation": { "x": 32298830.090377435, "y": -23707269.334675103 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4f1a2cb03676d45a2ac125c0", "8d0126891c8dbdad26d1fed3", "a002d8aaf89cc79991776ee6", "df6907e1c86f119bbe3061b6" ], "nodeLocation": { "x": 61663647.43600622, "y": 60451025.117063075 } }, "error_handler": { "name": "childJob", "summary": "ut aliquip occaecat proident", "description": "quis tempor", "app": "minim Lorem veniam quis occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/iDZNBMR99D//w.Me/0GL/FGF/klhWyvOL/~0/~1/C8C/DFVoi9/A.Q+y.S1" }, { "type": "encryption", "pointer": "/g3/rldQF,18/SbJcJTk/PMyaZks//aI1x/~1/~1/m7TQx5p7d/~0/Oz" }, { "type": "encryption", "pointer": "/XJeE.p5Yo/to/~0/~0/~1/uP/~1/jt" }, { "type": "encryption", "pointer": "/~1/~0/~0/i1gz/m/~1/~0/Ee,mo//uMgMtbPcp/nOoHgF8kq1M" } ] }, "groups": [ "6cd969d58f2d2bcc2628a020" ], "type": "operation", "nodeLocation": { "x": -1833008.0598008037, "y": -29821102.50492762 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "error", "error", "success" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "2f1305f3835e36310a0a36fc", "86e5cf6ebbb7e4a4de1bcbef" ], "_id": "0f63c63d-c110-2348-b319-2dc26b6f5f8d", "uuid": "4d9245fd-270f-d814-3bb6-b58e03466aa4", "description": "amet ex", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "velit", "accessControl": { "read": [ "ipsum adipisicing amet", "Duis nisi ea adipisicing" ], "execute": [ "elit", "in ex", "in deserunt nulla voluptate in", "eu ex", "dolore dolor adipisicing incididunt" ], "write": [ "consectetur dolor quis ut id", "est occaecat", "exercitation sed", "incididunt", "ex ut cillum consectetur" ], "manage": [ "dolore cillum laboris voluptate", "eu dolor cupidatat" ] } }, "preAutomationTime": 5000, "sla": 77630234, "errorHandler": null, "font_size": 12, "created": "2005-09-30T09:25:08.706Z", "created_by": "6c4a714e15ae19e6617f53e9", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1985-12-10T19:28:20.513Z", "last_updated_by": "2d06e82312c98787968e5341", "lastUpdatedVersion": "4.69.69", "tags": [ "veniam anim eiusmod quis nostrud", "cupidatat exercitation dolore proident" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Hnx/W00iX/~0/hw/~1/AoO6Crue2Yj/Xr3AMlDsDX8" }, { "type": "encryption", "pointer": "/Vonr/~0/Da.dK" }, { "type": "encryption", "pointer": "/Jj5C/PP8Cr/G4R8kIx,J/~1/~0/qh12" } ], "migrationVersion": 1915695 } }
{ "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": [ "be9768c913d27e10bca35fb8", "4601c91cd97eeca0eb4b7218", "26fc11620a0c3acfdca1ad75" ], "nodeLocation": { "x": 93379586.42726609, "y": -79232871.16591245 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "f64c8577bbad5325283a17d5" ], "nodeLocation": { "x": -3051662.075710267, "y": 44657592.400559396 } }, "error_handler": { "name": "childJob", "summary": "Duis pariatur", "description": "do adipisicing", "app": "esse et in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/b/0/~1/~1/~0/vjc.dIUhq/XhjW9.RQ/dmOPuCC" } ] }, "groups": [ "83f9716456091c498a6a791c" ], "type": "operation", "nodeLocation": { "x": -21964035.140430078, "y": -81564293.4925584 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "failure", "success" ], "autoRetry": false, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "c76f35f663ce5f4e7066e02c", "3cc47d27f750117f3ce6fc16" ], "_id": "b0eab440-2cdc-429e-7d3d-c3d9b05c72e6", "uuid": "ca81cba3-fdf1-39cc-d740-a31ed718c9a0", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": 22451310, "errorHandler": { "type": "ex dolor tempor magna voluptate", "name": "anim quis voluptate Lorem" }, "font_size": 12, "created": "1977-07-14T06:37:57.217Z", "created_by": "6fb800c08e988ff57da9f56f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2020-07-16T20:14:54.263Z", "last_updated_by": "3dfe48716d854321973c104e", "lastUpdatedVersion": "4.69.69", "tags": [ "quis veniam", "non ipsum in culpa" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/v3GGHo5fBcv/selVa/~1/~1/t/dcQDxxVjO/~1/~1/ga7Anu/~1" } ], "migrationVersion": 5634749 }
{ "$ref": "workflowDocument" }