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": 5963950.776517585,
"y": 37404841.588552475
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 79632948.95002341,
"y": -88179612.91133374
},
"error_handler": {
"name": "childJob",
"summary": "velit cillum quis veniam adipisicing",
"description": "irure consectetur",
"app": "irure ipsum magna cillum",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Za637l/z/~0/eBg/~0/YKsCc3/CPpve/b6"
},
{
"type": "encryption",
"pointer": "/ATibSxf/~1/f-/tpeN/~1"
},
{
"type": "encryption",
"pointer": "/~0/~0"
}
]
},
"groups": [
"b9af3d5ed67fc7a80597e426",
"82fa865d0ed64029dc31f7c2",
"0360287a91849bd8c3e9e145",
"6414b928d4e9f8c421c8d299"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"04a401bdfc8bcfa06ba80c0f",
"4dff2c216dd4ccf1483e4c07"
],
"_id": "f202d61c-9caf-1775-ff0a-4340023a17b4",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1961-09-26T14:08:50.193Z",
"created_by": "0ada3ff819b41dffa85e9f24",
"createdVersion": "officia deserunt labore",
"last_updated": "1974-01-07T15:33:42.663Z",
"last_updated_by": "7c64b72f291d7f8a4d17c3f7",
"lastUpdatedVersion": "et est aliquip dolore",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/~1"
},
{
"type": "encryption",
"pointer": "/~0/NIam2/QC4/~1/Z7cr8qobwl/mU/gKYQXKU0jlZ/QyIK/J2u"
},
{
"type": "encryption",
"pointer": "/~1/~1/~1/~1/Iq9nokYnd"
},
{
"type": "encryption",
"pointer": "/~1/LNxrmEk/M4/~0/fgC,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": [],
"x": 81454893.31356525,
"y": -89661300.78732455
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 63988030.371578574,
"y": -12268667.910322547
},
"error_handler": {
"name": "childJob",
"summary": "consequat laboris",
"description": "irure nisi dolore",
"app": "commodo exercitation nulla",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/ay/wWnlLRB/T-H6MaY0X/~1/V./bR3Ev38ab/S/OmALn2"
},
{
"type": "encryption",
"pointer": "/nPB+uuzZeVi/~0/SS8R6SzHP4/XoTs0hX8V/~0/~0"
},
{
"type": "encryption",
"pointer": "/LS"
},
{
"type": "encryption",
"pointer": "/o3yM/AOE/r9eO/~0/~1/~1/Fqw/~1"
},
{
"type": "encryption",
"pointer": "/~0/Rm83E/yCc/~0/~1/~1/~0/Wpqb2kKnuY"
}
]
},
"groups": [
"bfb2671564a071328107b73a"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"33bee21417142ed1e1965caa",
"058e17b3624f10ab700b5b6f",
"bac7e452527cc0466adf56cf",
"76918bb73f73519d04a97c47",
"3b36b741bbc3c2b841713f4e"
],
"_id": "b3b05edc-7102-408f-e7e1-f658692301f5",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "2000-04-03T14:08:40.119Z",
"created_by": "16d1f1a0bee2f80a0e7b1d0b",
"createdVersion": "adipisicing",
"last_updated": "1954-05-07T06:10:54.922Z",
"last_updated_by": "0de82105e9c70464e991e2e9",
"lastUpdatedVersion": "sit",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/KFP1gh"
},
{
"type": "encryption",
"pointer": "/XATE/~1/~0/~0/~1/IHeSznl/hQtP.H/K4XlwCHOxs/~1/~1"
},
{
"type": "encryption",
"pointer": "/grXw/~0/fqkKfiR/~0/V2xE/~0/WDqjD/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/kydlU/dw,vYME9KLA/xX/bKGDa0s/g/d4Rrs"
},
{
"type": "encryption",
"pointer": "/~1/AP33MGLef5/iB2clMjq3HE/hE4CrJ0G/C6z/~0/A85Peogb/~0"
}
]
}