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": [ "cd7e627a8b07ae7bc0e6d29f", "b66e9693fe0c4dcaab26b31a", "809acf6797c1cb0cb996fe71" ], "x": -50692329.17751254, "y": -72659802.24830523 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "efecd52138981307d02a5e5c", "c46602506983f150a5dcc34b" ], "x": -23212570.435203835, "y": 9039340.619379342 }, "error_handler": { "name": "childJob", "summary": "elit dolor in", "description": "laboris ut Excepteur veniam", "app": "est", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/GsnL/~0/d/EGvYpN/qdwUmhVkWoC/~0/YK6,7/b7fTneT/~1" } ] }, "groups": [ "296d20982c45f8ddf62a34d1", "693098d0ce72105d6e7dffd9", "a883450d16db9ad46bc8aaa9", "c6063a5313f6aa08214005bc", "d4fed4866b8f13b110977f9c" ], "x": 56676925.61566731, "y": 96648955.0844413, "type": "operation", "gridCoordinate": { "x": -48031701.98308351, "y": 82346266.55465993 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "f31213d4b6fdffdf28c89444", "ec73b25ff4a058f2c31ef4dd", "a005cf3884c36c925cf852b5" ], "_id": "497eebd5-dcd6-2a7e-fea4-032718dbe4e6", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "elit sed do occaecat", "accessControl": { "read": [ "aute nulla amet pariatur", "Lorem", "nisi qui laborum esse ut", "nisi esse occaecat in ex" ], "execute": [ "Duis", "laborum velit occaecat", "nulla tempor Duis", "ullamco" ], "write": [ "in ad sunt in do", "sed occaecat deserunt", "sit nostrud nulla", "aliquip in ex sint" ], "manage": [ "veniam", "consequat dolor eiusmod", "officia consequat", "velit eiusmod pariatur minim", "nulla sint id labore in" ] } }, "errorHandler": { "type": "est nulla nostrud et ea", "name": "quis tempor ullamco qui" }, "font_size": 12, "created": "1955-11-17T03:58:51.487Z", "created_by": "eaf46961d9fee9c9574a7d6f", "createdVersion": "in mollit enim exercitation nostrud", "last_updated": "1970-06-17T18:32:30.224Z", "last_updated_by": "67029fc1f7e4267b87370333", "lastUpdatedVersion": "Duis voluptate enim elit", "tags": [ "dolore laborum elit", "in incididunt do" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/hBDXwWEx7zr/~0/~0/~1/cBgThfuEsG/U/wkhzdD52/e/~1" }, { "type": "encryption", "pointer": "/~1/L7m3k6kd97b/AnJV,NtjS/h7/Nvoh7YZa/~0/ocUfZ.D.Bs/ac/~1/r" }, { "type": "encryption", "pointer": "/wpOizq" }, { "type": "encryption", "pointer": "/~1/frAOgO/mCE/f,d..ePWKl/X+As/~0/~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": [ "6d1f7eca7d6914a611cd0f2e", "1f6193ee3858199184fe5798", "306de4d523751b493083fc63", "aff82c771d47a265698dd31e" ], "x": 14117104.552925587, "y": -29866294.584334075 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9f78c2fc5ad7cbb127aa8ca9", "f758a0e17a264def0c627071" ], "x": -86793362.11213964, "y": -8873330.976974443 }, "error_handler": { "name": "childJob", "summary": "consequat", "description": "culpa ullamco", "app": "labore Duis est eiusmod", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/r.DenYM/~1/ahzf1,tq3/~0/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/WAZGO+/~0/O4e/~0/~0/~0/C.ao" }, { "type": "encryption", "pointer": "/~1/~1/~1/~1/~1/~1/~0/~0/~0/~0/CnCTjn4" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/IKFEgWp/~1/Iohq8V" } ] }, "groups": [ "6b3a4e9b5a98cff390591468", "d9b9782a204b990c9f521991", "ce303138ce9197719a853705", "30c71f745c99dfc2723a55c2" ], "x": 34035972.94151077, "y": -19273093.51044397, "type": "operation", "gridCoordinate": { "x": -50861477.149391375, "y": -38050908.33885596 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "29612d874a46a60e6b266d29", "39c21782cfb7e3a55fdcb8da", "eee9d8bde56404fead2602ea", "dde2a48aa91b8a5525e80e15", "83d2463273054f8e5c5f6900" ], "_id": "e058ae0e-2e61-7256-20b3-32db4bd3f212", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1957-03-21T18:47:14.598Z", "created_by": "59c8a12133bf2098dbf5dd77", "createdVersion": "velit proident anim non", "last_updated": "1952-08-17T12:12:43.621Z", "last_updated_by": "bf61e8269a4cd1afa4a9dc1f", "lastUpdatedVersion": "consequat eu ullamco", "tags": [ "aute aliqua Lorem sint incididunt", "nulla est reprehenderit culpa in", "velit", "occaecat magna officia exercitation proident" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/dR/~1" } ] }
{ "$ref": "workflowDocument" }