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": [ "2ae6636ebdc6556bcbd520a8" ], "x": -51600084.01657823, "y": 23256442.443894044 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "958931836c17a9735933b9ea" ], "x": -59598745.32293785, "y": -46362811.49917272 }, "error_handler": { "name": "childJob", "summary": "dolor ad ut", "description": "laborum", "app": "minim Ut ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/IC7AffrIUTr/FXCYdXtv+/~1/~1/Gu2V3/~0/~0/~0/~0/S-I" }, { "type": "encryption", "pointer": "/~1/~1/IkUqqUiOMR/~1/~0/BXEZugEH/~1/~1/F5/~1" }, { "type": "encryption", "pointer": "/~1/MC,G2/IAuNF9Y1/~0/ZD/~0/sgb1ow/~0" } ] }, "groups": [ "7058665e2d2459f157169cc2", "bd9335e956ae10564919b184", "db70692e2b877901a43be866", "1061a9fea01b87b2b38769ef" ], "x": 7524597.206722468, "y": -93834648.23953523, "type": "operation", "gridCoordinate": { "x": 78441646.56556809, "y": -30198801.043883964 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "ea2a9033a5da8ea1b53ad199", "9f0db52730524410c79a1c72", "f4e0c98f90d988fbcbc0e55b", "420ea3ced77079485cef5158", "239ae127fffafc99566d2682" ], "_id": "45f46780-1aef-2ad5-5e9d-ee2bd483f737", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1975-01-18T05:07:47.146Z", "created_by": "cdbb7af80c15ac4b8a33872d", "createdVersion": "sed", "last_updated": "1960-08-31T01:53:07.059Z", "last_updated_by": "a95e61dafcd94720463a76d5", "lastUpdatedVersion": "velit pariatur", "tags": [ "commodo mollit laboris nostrud" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/UuhftButu/jxhiwTe/~1/~0/~1/~0/~0/~0/~0/L,wftY,CO" }, { "type": "encryption", "pointer": "/~0/F9Ap/~0/tpEJy2pyJQ/y.OO5lBdnw" }, { "type": "encryption", "pointer": "/~1/t-hbmfr/~1/~0/~1" } ] } }
{ "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": [ "9adc14b05f5a760e37f2614f", "d31f34850b1bc46ac8c8212f", "eedfa647969e090df0e8c1ad", "c1962db84d464b9324ebf8b4", "8a1dcf20f6fc26bd36fb640c" ], "x": -2306444.690227583, "y": 61441323.71260297 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "e49d2212398959140ea1acbf", "7caf72a0e2a40ff1389a2205" ], "x": -56688736.342615485, "y": 71154994.77609953 }, "error_handler": { "name": "childJob", "summary": "elit", "description": "id consectetur adipisicing commodo reprehenderit", "app": "dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/yC5WsU/~1/~0/rR2eNBchLb/z-AY" } ] }, "groups": [ "c3a94fbda6440b620c1f536b", "5701b9ca90cea4c3ec1c074b", "f92b3934e83a1efd6b1f1590", "a5e765f763703eac9cfc94a5" ], "x": -92998454.12596537, "y": 29763488.09076263, "type": "operation", "gridCoordinate": { "x": -7295265.586152896, "y": 16495264.514239192 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "7247e184f7af6119bba8820f", "8e9fae11bc533798b66a1df4", "e5860139353f17af79ed9a03" ], "_id": "433ece9e-f9ae-9800-c92a-4c0da56768f1", "description": "nisi", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "sunt", "accessControl": { "read": [ "adipisicing tempor", "sint veniam", "elit ut tempor velit proident" ], "execute": [ "anim eiusmod", "labore officia Lorem sunt deserunt", "nulla", "incididunt ea fugiat non in" ], "write": [ "minim nisi", "ipsum sint", "sunt aliquip elit", "ullamco dolore" ], "manage": [ "deserunt do", "fugiat", "ut et sunt occaecat", "aliquip cupidatat", "dolor ea" ] } }, "errorHandler": { "type": "cillum", "name": "Excepteur irure sed quis" }, "font_size": 12, "created": "2022-07-06T18:36:02.234Z", "created_by": "e6531bcc094a0a67c2344ab0", "createdVersion": "ut", "last_updated": "1964-10-30T22:53:37.225Z", "last_updated_by": "51231cc45ba882a13406233f", "lastUpdatedVersion": "elit nisi nulla sed adipisicing", "tags": [ "pariatur in veniam sint eiusmod" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/dQuxeR/~1/~0/~0/~1/~1/~1/~1/h1SGno" }, { "type": "encryption", "pointer": "/~0/~1/h./kl3BiF+MI/~0/~0/~0" } ] }
{ "$ref": "workflowDocument" }