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": [],
"x": -46127221.34679643,
"y": 92256252.81132382
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 27354735.48184441,
"y": -70578707.81081218
},
"error_handler": {
"name": "childJob",
"summary": "exercitation in anim",
"description": "enim officia nisi",
"app": "aute magna consequat aliqua",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/skUv7/GcJ.O/kg9xw/~1/oK/~0"
},
{
"type": "encryption",
"pointer": "/VtiY7D+x/~0/SQ0Ur,z/~1/okglrtQc0p8/~0/~1/~1/AU2mBE"
},
{
"type": "encryption",
"pointer": "/Yzthk/OByCE/vbZTEh+YUFh"
}
]
},
"groups": [
"c50f2a85246a02f92e391316",
"e7eae2290eb7fd63f4e7c9d1",
"5fb3bdded62b0cecc76988c5"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"1fafeec28e53b4ab22956b2a",
"12932c85e9650fa5b2126bec",
"610afbec4e93031252ab7b4a",
"be5ad654fde7675152b5f948",
"64292f0d379a7dff4e444575"
],
"_id": "c2b42be9-ea0e-6de3-b1bc-57c7efdda850",
"description": "exercitation est in",
"errorHandler": null,
"font_size": 12,
"created": "1954-05-25T08:04:37.578Z",
"created_by": "a688976c4449a735b6331dda",
"createdVersion": "sit culpa enim aute quis",
"last_updated": "2020-02-02T00:47:35.205Z",
"last_updated_by": "a598d4b15fd980ff24171fe8",
"lastUpdatedVersion": "in non",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/~1/pDqi,/~0/~0/LY77y1aee/t9OuW0/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/Tig/~1/~0/~1/~1/R/~0/u/fro+"
}
]
}
}
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": [],
"x": -27240327.51682213,
"y": 30069178.391855583
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 58408984.01335317,
"y": 68299337.2396909
},
"error_handler": {
"name": "childJob",
"summary": "ut dolor Ut",
"description": "consectetur eu laborum elit",
"app": "sunt nostrud sit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/OjCwJ/~1/~0/~0/~0/hb7VRJVi/oa/~0"
},
{
"type": "encryption",
"pointer": "/~1/p/~0/~1/SXvcsh9Feor/UhbubCd9GR8/f,Tw/rBGSf/r3I"
},
{
"type": "encryption",
"pointer": "/~0/Dw/H/HpX/qxKAe6g/4B/~0/~0/~0/JlJ6,/BYXrDl"
},
{
"type": "encryption",
"pointer": "/~0/kFAlF/VrARCT"
}
]
},
"groups": [
"e397bea12aa9a633722616e5",
"d421d3ebcbe2c894cf392073"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"de732696deac9e07c927e2ab"
],
"_id": "8c0c6041-6207-58ef-b6be-9d2d6393fa3f",
"description": null,
"errorHandler": {
"type": "veniam laborum",
"name": "id ea"
},
"font_size": 12,
"created": "2019-03-01T15:13:16.703Z",
"created_by": "3c1335d9927f39fe4de75ba1",
"createdVersion": "elit nulla ut id",
"last_updated": "1998-04-12T10:07:01.354Z",
"last_updated_by": "f903c422766e38c032aad54f",
"lastUpdatedVersion": "officia proident dolor amet ut",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1"
},
{
"type": "encryption",
"pointer": "/~0/sYt48D19gZ/~0/w+syzPXY0"
},
{
"type": "encryption",
"pointer": "/l2Gjyl/Muurj-U3Tr/~1/OY/~1/~0/~0/~1/~0"
},
{
"type": "encryption",
"pointer": "/pVqWd/~1/~1/MM1foWh+F"
}
]
}