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": 13569700.39610079,
"y": -60854582.18150639
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -50643879.54695242,
"y": 76003573.84390071
},
"error_handler": {
"name": "childJob",
"summary": "cupidatat",
"description": "Lorem in Ut cillum",
"app": "non dolor pariatur",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Fg+5/~1/~0/xIHySoUo1/m.2y9dw1Ez/vPWj1wcH/~1/~1"
},
{
"type": "encryption",
"pointer": "/aJDK2Djk/~0/noaNYb5/~1/~1/~1/~0/C-qgFH/~0/u"
},
{
"type": "encryption",
"pointer": "/pZkm/mu7lG/~0/~1/g5a/~0/~0/gzMMkg"
},
{
"type": "encryption",
"pointer": "/~0/~0/LBMDSf4//c8kYbl0dV7/vrc3N1/K7IE-Xg/~1"
}
]
},
"groups": [
"32c45bc8c06b9f9319e76f94",
"b8338de230618e0979d71c31",
"2e37c35a0bf334b18e6fc3da",
"a1b86612cacc50b0456b5140"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"29320b6338ccf9a9da0d7005",
"20d2627a45a48e64e4585c02",
"7aabf0ba2c98190db4e49dd2",
"7a2c45adcd1a4bd834bef01e",
"0e6c1ef4da2195ab3a1f7bc8"
],
"_id": "a0f6a802-9b62-9618-6481-ec93f6aa2111",
"description": null,
"errorHandler": {
"type": "deserunt occaecat",
"name": "irure"
},
"font_size": 12,
"created": "1991-08-21T03:11:00.837Z",
"created_by": "4338c51ff0f457da9ad88f1a",
"createdVersion": "culpa consectetur",
"last_updated": "2014-11-24T12:01:38.411Z",
"last_updated_by": "09b3b88beeb449d4a9eb4d95",
"lastUpdatedVersion": "dolor dolor commodo",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0"
},
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~0/Dd/Y/~1/~1/~0/Cur621Qp"
},
{
"type": "encryption",
"pointer": "/~1/wxaaV/~0/~0/~0"
},
{
"type": "encryption",
"pointer": "/R8occBypNLR"
}
]
}
}
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": -7445520.169639826,
"y": 41935516.627492756
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -57758745.640537865,
"y": 78247517.46746111
},
"error_handler": {
"name": "childJob",
"summary": "elit in culpa tempor irure",
"description": "amet sit",
"app": "Duis id",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/zk0/~0/leSSJ.Dh/uig/h5+"
},
{
"type": "encryption",
"pointer": "/lAuJ0v/TJnr/~1/~1/~0/~1/~1/~0/gRQv8HU/V6y6W5us"
},
{
"type": "encryption",
"pointer": "/~1/~0/~1/j/pQ8aM9,k/cDAexwOJyDv"
},
{
"type": "encryption",
"pointer": "/p4G.I1/CLty/n3frzxBs7/WvgPGwk/TX9Lqu2++L"
}
]
},
"groups": [
"0a023639327db4270087b09d"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"87a4326de4781c47ea6dbaad"
],
"_id": "30bd208f-5e26-b157-bac0-ae679a9b5b49",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1965-09-30T20:38:08.756Z",
"created_by": "3ad18e1b7b056445af67edac",
"createdVersion": "dolore sint",
"last_updated": "2010-05-21T10:27:24.207Z",
"last_updated_by": "faec26ba481c7e663967a2db",
"lastUpdatedVersion": "est sed sunt",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/YubUge/LY/~0/~0/~1/~1/~0/~0/apyycz"
},
{
"type": "encryption",
"pointer": "/~0/EmjOjXpvZoh/~1/hS09L7hvRnd/~1/~1/~1/sWaV7I,k"
},
{
"type": "encryption",
"pointer": "/~0/fo/l4r-fqJG/~0/~1/~1/x/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/B7N/~1/~1/~1"
}
]
}