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": [ "d0f64e7ea5cdc9a60ac4a09c" ], "x": -87787052.21553409, "y": 78429923.23481882 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "dd167c76d4f4f59a0710fbbd", "70e4bc428db1bd7009c70a3e", "26c97a8ce87f80a4391c5f17", "5e03fba210442f529e1331b3" ], "x": -75774845.49046546, "y": 11376539.037894994 }, "error_handler": { "name": "childJob", "summary": "fugiat Lorem voluptate in", "description": "enim veniam dolor culpa", "app": "do consectetur irure aliqua ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/Wt4qV.FHD/~1/K9G7/H0oHK/~0/~1/~1/Ll9ut" }, { "type": "encryption", "pointer": "/ECAjv/zgG/RvrL.l/NLD7k.LF" }, { "type": "encryption", "pointer": "/BMl4lNaXXv/~0/H2MybFs/d+CG+uM/smLIk/H/Zb/TudvKx,c,uv/~0/x0n/~0/gbpNE/h5," }, { "type": "encryption", "pointer": "/eSmlCs/~1/~1/~0/TSM-1AK/Fh5VyxqkNz/HNLX/To/e/Yky" } ] }, "groups": [ "76567ff3df5171f907b11412", "dc20746e3831b4e13748c85a" ], "x": 94859782.50392032, "y": -78502815.33484331, "type": "operation", "gridCoordinate": { "x": 39623619.43886861, "y": -40547761.16493439 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "3bd31e7c5798f8944815cf2e", "bcdd3cba693546a34fca5444", "5f50c17a2793f98e335b1d92", "3f72740ee5922f018a1546fa" ], "_id": "91ae674e-8539-7ba8-37e9-356396eb9616", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "labore veniam sed", "accessControl": { "read": [ "aute labore eu", "amet dolore sint" ], "execute": [ "proident fugiat ut in exercitation" ], "write": [ "laborum commodo consectetur exercitation", "in", "sunt", "ea sint mollit" ], "manage": [ "sunt irure in ea" ] } }, "errorHandler": null, "font_size": 12, "created": "1953-05-23T12:43:05.535Z", "created_by": "1edee4418612dac157bc857d", "createdVersion": "consequat irure", "last_updated": "1955-09-15T12:34:19.657Z", "last_updated_by": "515e73d88893ff56fde4168a", "lastUpdatedVersion": "in sit dolor elit labore", "tags": [ "velit labore adipisicing", "dolore consectetur", "dolor ex ipsum laborum", "Ut irure", "id magna aliqua dolor" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/YFbBGHShxfu/~0/Y/rSY5MTSkc" }, { "type": "encryption", "pointer": "/wNGVR/~1/~1/~0" }, { "type": "encryption", "pointer": "/Gn+9L/D4C/~0" } ] } }
{ "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": [ "976319e3d6add90d89159de6", "e9e7b2647a404e3cbeb45b12" ], "x": -72941517.37691861, "y": -30651394.083063006 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "6f638a41dd19c2c20a701a7f", "0726962d9d4fb95398b90c17", "623577aadf0ce4ecdcd9dafb", "8c1e7c258ff3a460b07e0e73" ], "x": 96450953.70125875, "y": 39846135.55416319 }, "error_handler": { "name": "childJob", "summary": "mollit ut exercitation proident", "description": "reprehenderit aliqua officia voluptate", "app": "sed cillum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/KGWU/~1/rNdHi5o/~0/LNQn/~1/~1" } ] }, "groups": [ "62c120395ce9b2c849b40c36", "f39804ea812179f4d0d85a19" ], "x": 47296423.942733824, "y": 23125327.157239407, "type": "operation", "gridCoordinate": { "x": 95365830.65433139, "y": -3894838.402978003 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "da2210e022b2649d8363f378", "385c14fafca31c2d929d2a55" ], "_id": "5140d34e-5421-fe37-2f7c-97b56be9991e", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "veniam dolor", "accessControl": { "read": [ "occaecat sed non", "qui", "do" ], "execute": [ "elit id consequat", "aliquip eu ipsum consectetur Duis", "magna in", "anim" ], "write": [ "in cillum mollit nisi voluptate", "adipisicing" ], "manage": [ "sunt proident dolore labore aliquip", "laborum consequat incididunt", "fugiat adipisicing Duis ex", "nostrud ex ut esse" ] } }, "errorHandler": { "type": "in aute", "name": "aliqua" }, "font_size": 12, "created": "1984-11-16T11:59:40.103Z", "created_by": "e1eebee93b653b2cb37b12a8", "createdVersion": "in in voluptate dolor", "last_updated": "2005-08-05T13:22:02.556Z", "last_updated_by": "fc227a55b1ac51f879721226", "lastUpdatedVersion": "anim dolor est ad", "tags": [ "est Duis cupidatat dolor", "dolor ipsum magna non", "et adipisicing sint irure", "occaecat incididunt enim ad" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/dXn" } ] }
{ "$ref": "workflowDocument" }