Summary
Add Workflow
Description
Add a Workflow to the database
Route
POST /workflow_builder/workflows/save
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| workflow |
object |
yes |
Workflow's data. |
Copied to Clipboard
{
"workflow": {
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [
"c6d8bee1f39bfc698171d49b",
"b0f2999d0328acc348201cea"
],
"x": 21311207.979201004,
"y": -89998931.36560093
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"02268df0854dbc6f807db2e2",
"15e9e16f4d27c78512342dc4"
],
"x": 98533712.7091316,
"y": 55792272.083131194
},
"error_handler": {
"name": "childJob",
"summary": "dolore",
"description": "Lorem deserunt nisi occaecat officia",
"app": "dolore commodo quis",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/lgs/Nh/~1/V002+pNd/~1/~0/~0/~0"
}
]
},
"groups": [
"fc8bc9e82ef4a9d539152bf6",
"a323ff6f1299c2f5e28ba788",
"4f2f273344759b6cbd046b6e"
],
"x": -66144856.285235584,
"y": 81878046.29221326,
"type": "operation",
"gridCoordinate": {
"x": -16208346.301117867,
"y": -67201920.28871796
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"a297d077c8727bfcd8998d63",
"a0de0427ddc3efe967ebb52e",
"076d3fa03055c4cf53c3f96e",
"66eb8459d8dcf2883f621e99",
"6c589f026bfcc8ec2ceede3d"
],
"_id": "0ca91b07-7990-b064-00f0-79bdcdc3f467",
"description": null,
"errorHandler": {
"type": "ut aliquip laborum in",
"name": "sunt sit eiusmod Lorem adipisicing"
},
"font_size": 12,
"created": "1978-10-05T05:13:29.646Z",
"created_by": "9fa206da9588f04d26e38fc3",
"createdVersion": "velit",
"last_updated": "2006-06-08T04:26:43.908Z",
"last_updated_by": "f5fcb23aa8193b99dd7dd8bf",
"lastUpdatedVersion": "esse quis",
"tags": [
"ad ea",
"Ut",
"sit"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/z/fpj2xT93XJt/~0/uwxPLFn/aDdTXz/~1/dZxkV"
},
{
"type": "encryption",
"pointer": "/ntn/~0/l-sxQrv/Eh.pOTO/tZD+8/~1/jHt.Ew/Yi+e6SW/YE1y-y"
},
{
"type": "encryption",
"pointer": "/~0/EMiKpB/r,l+Q1W7E/h3EWCJ6Y-l/YxVW/Czt/yi/h/~1/~1"
}
]
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflow": {
"$ref": "workflowDocument"
}
},
"required": [
"workflow"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| data |
object |
The new Workflow with its data and ID. |
Copied to Clipboard
{
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [
"431dc5b8a44f71021a41225e"
],
"x": 20612457.993064433,
"y": -81650366.02100688
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"dc1894af33c58a3fb67f4ec9",
"b929e24b7fb2e8ae68e1cc1f",
"59a78ff613e228fd8b9a19e4",
"d98c30cc26de37127ac576f3"
],
"x": -92979198.11345361,
"y": 42560399.379540086
},
"error_handler": {
"name": "childJob",
"summary": "dolore ex cillum qui sit",
"description": "minim culpa dolor nisi ullamco",
"app": "eu Excepteur culpa",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/vOhmD/pZBJ0cNv/~0/e,q9BCOK/~0/TQZv/uOXL8yLr+G5/tZU"
},
{
"type": "encryption",
"pointer": "/n+lR/V,/~1/~1"
}
]
},
"groups": [
"302d3e6da76c8bc6855c65af"
],
"x": 4328748.567532867,
"y": -84945907.96185854,
"type": "operation",
"gridCoordinate": {
"x": 69603306.61227795,
"y": -57180929.50953122
},
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"1876e2c5bbfd6d21230c23cb",
"c93688442ac7f60c7496f1b2",
"bef5aeeb23d1978d58332b49",
"100ad6465d2c4906bec095b4"
],
"_id": "c424adc2-7029-7f53-ac99-03e72a4b129f",
"description": null,
"errorHandler": {
"type": "quis tempor magna do",
"name": "sint"
},
"font_size": 12,
"created": "1951-11-21T16:57:57.44Z",
"created_by": "f36dff6739b6a4e3375849bc",
"createdVersion": "sit incididunt",
"last_updated": "1972-04-26T11:46:33.269Z",
"last_updated_by": "c76b1e9a3a41fede9f8ec1ab",
"lastUpdatedVersion": "quis adipisicing sed nostrud",
"tags": [
"nostrud in"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/EtGF/~0/~1/~0/lAYeB6m"
}
]
}