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": -59325639.335503586,
"y": 13842013.134094432
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -83821049.61121573,
"y": 37007123.7639589
},
"error_handler": {
"name": "childJob",
"summary": "Lorem reprehenderit anim consectetur aute",
"description": "labore voluptate cupidatat",
"app": "fugiat pariatur",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~0/~1/JWK/o6jWLAxh0T/~0/~0/bA.rz/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1/~0/~1/w7nnJaAYdKv"
}
]
},
"groups": [
"29dce62cc69d595db4b167bb",
"26adaf733ed2b16379bc05c1",
"b2caa1597ca02c477ac7a2ad",
"0641fcf3d5e65a619937e5c0",
"5b86b9793a36befd381c704e"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"2f9e9173dc9f357c02785656",
"3836f1135c8d0a65b4d4f609",
"81a029575ac7cad6f4bf7926"
],
"_id": "9355204f-f371-4451-32f6-889e3e998c6b",
"description": "in occaecat dolore mollit et",
"errorHandler": {
"type": "magna irure sit aliqua reprehenderit",
"name": "dolore voluptate nostrud"
},
"font_size": 12,
"created": "1954-10-15T12:28:52.731Z",
"created_by": "154432103f3a1fca1523ab5a",
"createdVersion": "culpa aute",
"last_updated": "1983-07-08T19:25:19.474Z",
"last_updated_by": "4e4ac0d7b61d2585fced0bd4",
"lastUpdatedVersion": "Duis est",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/nTb/UF/saE/NUR6/TG-w1fNr49M/f/~1/~0"
},
{
"type": "encryption",
"pointer": "/BRaurj6h1pp/~1/kufda/~0/tJ/~0"
}
]
}
}
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": -82257707.99691983,
"y": -3235715.9699026644
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 20206728.311700627,
"y": -2402703.437864423
},
"error_handler": {
"name": "childJob",
"summary": "consectetur nulla irure sed magna",
"description": "sint culpa tempor consectetur esse",
"app": "sunt ad voluptate ut",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/eHCHmQd,Jf/T.h6fiNzpLz"
},
{
"type": "encryption",
"pointer": "/u5B3O,M8BI/An+A2Vfxjk/~0"
}
]
},
"groups": [
"8146cfbe17f432863bea76ec",
"f873e1eb5ebf7d8f196dc76f",
"abb87212b312b5cdf2c51480"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"88769d1137273eba823928ad"
],
"_id": "0627538c-94bd-1f2a-abd0-527889c9c08e",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1944-06-09T02:26:36.686Z",
"created_by": "f0e4e7a6bac167967e835f65",
"createdVersion": "fugiat aute",
"last_updated": "2001-11-26T05:54:31.053Z",
"last_updated_by": "a39ebe7d5f55bfb2ab53d502",
"lastUpdatedVersion": "ea",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/DX6z/mu/~0/v8ar,Lqt2Fk/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1/wL/D/~0/~0/b42o/~0/WaN,bF26Jp/C/uwyE."
}
]
}