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": [ "60eaa2281fb3b15468ea9124", "c255f9ee4997b17562308e3b", "da640eb16f22f7b694f0aa4c" ], "x": -31495744.9013765, "y": 1450346.5655054003 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "e7e94f78ec2a6ef37c6216c8", "b1d2dacda0dd23d79f40c238", "fbb5a7b967b517d90700f813" ], "x": -67887806.05695184, "y": 94389344.68578783 }, "error_handler": { "name": "childJob", "summary": "laborum dolor Duis in", "description": "mollit in eu", "app": "est nostrud esse Ut amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/bQ/a4f5pXs.ri./BBZlZql/RpPl5/-Sgy/~0/~0" }, { "type": "encryption", "pointer": "/~0/gUl/u/7ImjkA" } ] }, "groups": [ "dd32cb65fc9c730640c48e63", "f27fce614e2f5f8384fae6be", "a6af3476a31af2ceee1eebf4", "16742cd8a1890c580673ba05", "3da1bdef1e169196a7ff9dd1" ], "x": -84346720.82615729, "y": -22163208.3695852, "type": "operation", "gridCoordinate": { "x": 86972648.70932764, "y": -47935772.98898413 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "947936038acb7dbecb8ee2e5", "d05f52ba7d20b9f2c647cc9f", "3bbda59386f5fe6931907a4a" ], "_id": "1b67122d-9dc8-934c-4ac3-15356120aab8", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "2015-11-30T00:20:27.125Z", "created_by": "4c6dde327c55b95a6f7522df", "createdVersion": "sed incididunt qui Duis laborum", "last_updated": "1949-06-26T09:19:24.526Z", "last_updated_by": "c0e7204090f47d0a66980982", "lastUpdatedVersion": "Excepteur deserunt et velit", "tags": [ "proident consequat", "laboris ut ullamco dolore velit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/b5fDFcBHKL/~1/~0/~0/~0/diICkyIOS/~0/AAmhiqlUZ1" } ] } }
{ "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": [ "bd20b8983afc05eef12175cb" ], "x": 18633147.922107622, "y": 15999024.597020075 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "575f2149176d1186204871a9", "c06afa0363457b53ef20a071", "22ff2fea54e1a006c4d3f746", "6ca238985db840d3b040e760", "f0ad0a65a0e629fd938dc8e0" ], "x": -84857892.19806162, "y": 40124258.337723404 }, "error_handler": { "name": "childJob", "summary": "quis sunt Ut ad velit", "description": "dolor sint ut Ut magna", "app": "mollit cillum commodo officia esse", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/oiQoZ/ZqPIQTT/l/J/Z5/~1/~0/uPksHmGl/rrxLeR-df" }, { "type": "encryption", "pointer": "/Nwitts" }, { "type": "encryption", "pointer": "/PAsDdUO35x/Cjr0qz.0Ztb/Anxd705/~1/CoaFeq.EwgC" }, { "type": "encryption", "pointer": "/~0/G4a/~0" } ] }, "groups": [ "5b86a2f1858a220dd313a1dd", "18e749f606cdb936df1f1e49" ], "x": 6781274.0934636295, "y": 48040981.230184436, "type": "operation", "gridCoordinate": { "x": -93190605.03873566, "y": 92612140.31267676 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "2172bf217bde25f0efbfb68f", "bb69949f49fddcc36420914d", "cb593ce18ec2c61f71ee8a42", "d64f61c04a07baa38a86dfde" ], "_id": "a1905dad-b381-ffda-bc9e-9809c920cda2", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "sit cupidatat exercitation", "accessControl": { "read": [ "dolore id", "fugiat ut" ], "execute": [ "in amet", "enim adipisicing", "nostrud in cupidatat veniam sint", "ipsum Ut nostrud sunt" ], "write": [ "Duis culpa dolor nisi", "tempor in anim laborum laboris" ], "manage": [ "sunt enim amet", "quis", "non velit culpa" ] } }, "errorHandler": { "type": "occaecat velit", "name": "in" }, "font_size": 12, "created": "1960-12-24T06:42:34.965Z", "created_by": "a13f1e2c91ac94f7afdf36df", "createdVersion": "dolor nulla nisi ex ipsum", "last_updated": "1967-05-03T19:24:50.26Z", "last_updated_by": "47b5fa63dc75a8614f15358f", "lastUpdatedVersion": "consectetur Lorem", "tags": [ "occaecat consectetur", "sunt", "Excepteur sunt dolor", "aute", "Duis magna commodo dolore" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/B/TXG,/P17NcvpoTJ/Itn1J/~0/hv" } ] }
{ "$ref": "workflowDocument" }