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": [ "0bb488d827a24898c34c081d" ], "x": 78887133.01962867, "y": 75070945.3516306 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "75d7eed299c2366ce8263f29", "68525069dccfdb78d3bd570b" ], "x": 15690446.561249211, "y": -63432662.803766735 }, "error_handler": { "name": "childJob", "summary": "irure sit dolor", "description": "ut occaecat Duis", "app": "sit id quis cupidatat pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/r/~0/~1/~1" }, { "type": "encryption", "pointer": "/DeO/~1/L3Dc/g0Pk/~0/~0/lP/H+9i0CQe0h9/X1lR7cx/bdQ046Xp" }, { "type": "encryption", "pointer": "/~0/qe/fNN/~1/~0/~1" }, { "type": "encryption", "pointer": "/ZZZ/~1/eh5x7r9kj/rOEcPBOC/~0/~1" } ] }, "groups": [ "54000215e87f8c21f85b19be" ], "x": 74534569.89479768, "y": 60615787.281774074, "type": "operation", "gridCoordinate": { "x": -22066642.28862998, "y": -44731935.4591127 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "47d89a09250c77ac3dbff4ce", "70a6ff989ddc67196a59b8e8" ], "_id": "ad359a76-2d77-e2e1-dcb3-fb8d708c9f63", "description": "laborum ex magna cupidatat", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "tempor", "accessControl": { "read": [ "sunt", "sint" ], "execute": [ "Ut", "qui cillum" ], "write": [ "nulla", "exercitation nulla nisi ex", "in sit", "adipisicing dolor", "eiusmod exercitation in" ], "manage": [ "commodo do Excepteur nostrud labore" ] } }, "errorHandler": null, "font_size": 12, "created": "1998-04-21T23:39:07.782Z", "created_by": "0f90afdce60cba8cd329b8dc", "createdVersion": "velit commodo dolor ut exercitation", "last_updated": "1961-06-04T18:26:04.787Z", "last_updated_by": "b23014fdb8ca178f71bf5200", "lastUpdatedVersion": "est", "tags": [ "nisi elit ut", "qui", "officia ut aute exercitation", "in ut anim nostrud" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Qw/~1" }, { "type": "encryption", "pointer": "/WTLBtwJ8OYu/~1" }, { "type": "encryption", "pointer": "/m/~0/SKiJaXFB1B/~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": [ "51bded4f4f4affb92d6cbad1", "31d81743ea3443176e4f28f0", "65a3231b56a1f6a48725ac2a", "78e5781247c3e91723324125" ], "x": 69028959.35793608, "y": 74762537.59917113 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "6078eb77c7bfce73a98701a0", "927abd842d99d2db1f05ff2f", "3fd84e891166f30ab87e2cdd", "d897bf91c4d29c4d34c9248b", "0c9f4570ff9c31148e9ffdb3" ], "x": -47419888.13176117, "y": -16221701.467725769 }, "error_handler": { "name": "childJob", "summary": "laboris aute nulla incididunt sunt", "description": "velit", "app": "adipisicing cupidatat do pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/q.8l2/~0/GZxhN9n/oZGl1jht/Jn/~0/~1/RZJ22XYM" } ] }, "groups": [ "e3a0a7c3c0342b1b5dd87b07", "f0e9cbabbd583c25c02c2d4b", "41387282c065c076d76932a9", "e5ac996e3d20a34ae41ed789", "7924a49f54b52538deb92ec7" ], "x": 33263111.35678339, "y": 6520886.704709113, "type": "operation", "gridCoordinate": { "x": -59941034.80071425, "y": -73501484.94909208 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "e1f6bc6c8b47f94e15fe11f7", "af1414f456966cefafcda886", "68c9ce0867bf5c8be0c0560f" ], "_id": "7d31eacd-b49a-e274-dab4-1cf689f94076", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1993-03-07T15:36:36.509Z", "created_by": "cfb009302ed4695c6e7f3da9", "createdVersion": "quis id", "last_updated": "2022-12-05T06:03:21.489Z", "last_updated_by": "1347240e01af9fc8ccb4f2d2", "lastUpdatedVersion": "do eiusmod in", "tags": [ "ullamco", "nostrud nulla dolor", "cupidatat tempor consectetur" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/ijnk" }, { "type": "encryption", "pointer": "/~1/YsbHSZv/u/~1/e/mH9Tfw0Uny/YbjIrKY0PZ/~0" }, { "type": "encryption", "pointer": "/lonq-0/~1/~0/QBDbYxlt/mPQgBD5LR,N/~0/fVYr/ve9NBff/~0/ExONVN0HJw" }, { "type": "encryption", "pointer": "/KB2EnslqLe/o6Lj/Imy/AX7TiGE0/Qkh/jWjihPh4/IzToVRNCvK/f.x/32/By-ddqn/Y-The1Qz+6" } ] }
{ "$ref": "workflowDocument" }