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": [ "e8ab62e2fd6eed38a48b4213", "68f72c50ad39d9e8cc7cbb02", "f70e7e8b2aef51f46e2f7647", "14613968dceff2d4e199ff82" ], "x": 43033572.0477134, "y": 48960383.12218729 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "e889ec0ec7632ce38decaf47", "8a7b0c9069ac052f460f6989" ], "x": -20496955.907093465, "y": -77202944.72762994 }, "error_handler": { "name": "childJob", "summary": "voluptate Lorem", "description": "laboris culpa", "app": "anim aute sint sit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/TkM6AB/fWPfJE/~1/~0/~0/~0/~1/s07/~0/mxpH3ePe9wf" }, { "type": "encryption", "pointer": "/pVEecnZ0Z+/~0/~0/L/bw6sb/~0/~0/~0" } ] }, "groups": [ "a6d3a771b54ac04f86a382a6", "c5fc33a2b5b94e7d7d9f714b", "1f6114098f8b148e4016052f" ], "x": 42007979.1000565, "y": 82259999.18881068, "type": "operation", "gridCoordinate": { "x": 58871610.94380936, "y": -69946043.1264776 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "bceafb97de7d0db9bef366ba", "2c4c35a81d6ecd72fb897f1d", "0809eebaf1775f1e9935d487", "d5ee897d8426f63ea7a0d313" ], "_id": "9d0964ac-65b3-20e5-57a8-b081d559efe5", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Duis et ex tempor", "accessControl": { "read": [ "dolor nostrud", "ad" ], "execute": [ "nostrud laboris ut aliquip", "eu", "consequat commodo do dolore deserunt", "et consectetur voluptate", "consectetur officia dolor anim" ], "write": [ "cupidatat dolor culpa amet qui", "Ut sint" ], "manage": [ "id", "aliquip in commodo adipisicing", "Ut occaecat laboris cupidatat" ] } }, "errorHandler": null, "font_size": 12, "created": "1947-09-02T23:43:50.486Z", "created_by": "cd981bc9afe9a4abb42d13c9", "createdVersion": "non adipisicing", "last_updated": "1949-11-10T08:37:43.127Z", "last_updated_by": "9797bd99a48af4c48d36df37", "lastUpdatedVersion": "sit", "tags": [ "aliquip ut", "ipsum ea mollit dolore" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/UGLKoHoJ4aF/~0/~0/ts4" }, { "type": "encryption", "pointer": "/~1/~1/vNsuQ1B/~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": [ "17342962b32b188f35c34afd", "5de7e0762051b9e521db42ba", "5a1461bfc53d234e6d7b1d83", "d1f6c7c063bc1194924b9714", "1782ab27a97622fdbfa376d8" ], "x": 68215649.5141567, "y": 74281083.23700976 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "02c21124fd6d6fae3c087b88", "b59c34972b8150e91f70f4fc", "28080ca1d47b230bdb9d9327", "84eb6415c954bc93955325f9" ], "x": 20526934.50968492, "y": 86958911.447983 }, "error_handler": { "name": "childJob", "summary": "minim", "description": "do Duis dolore amet", "app": "anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0" }, { "type": "encryption", "pointer": "/qE+5KY8/o/~1/~1/~0/JFgfp6Cg/~1/~0/u1zr1rxSREV/hnfnjeDu/~1" } ] }, "groups": [ "45c85d5cf5c9f2926440b308", "29bc7916d1f7a9a9d3e01938", "f50e3852de1015a0db451bbd" ], "x": -71012446.6509316, "y": -13511374.827165306, "type": "operation", "gridCoordinate": { "x": 30576136.872426838, "y": 94437330.61457023 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "758429a397c8b5cc6ef7d6f7", "5f775a5c65ed0bc0bafe400d", "71ee2dd55c7f5164e94c4a65" ], "_id": "7bd141bc-8f5e-8158-c780-e1d269950513", "description": "deserunt et est proident", "namespace": null, "errorHandler": { "type": "minim amet Lorem incididunt anim", "name": "nulla commodo" }, "font_size": 12, "created": "1988-01-31T20:18:37.262Z", "created_by": "42f6d31d90bf71cd3e969a31", "createdVersion": "laborum est ut", "last_updated": "1976-01-30T02:13:25.827Z", "last_updated_by": "3b35958db62cac22b4658288", "lastUpdatedVersion": "et laborum sed", "tags": [ "cupidatat nisi in commodo" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/GU91e7Y-7IP/~0/~1/IAQmxG3/FY5mLIgz" }, { "type": "encryption", "pointer": "/EmHD3Psz-cD/FCoc4bc/ck0q9h5N.zA/~1/~1/~0/~1/~1" } ] }
{ "$ref": "workflowDocument" }