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": 1289323.2962874323,
"y": -39605196.48574849
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 19782665.773169324,
"y": -5144676.1611007005
},
"error_handler": {
"name": "childJob",
"summary": "incididunt nulla nisi sint minim",
"description": "consectetur dolore et",
"app": "ut sunt et aliqua dolore",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/qcRh0/~0/Lw5AId7JgGE/~1/Fz9S/~1/nhaJR45g+/TaJaw/~0"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/n/~1/t/~0/i"
},
{
"type": "encryption",
"pointer": "/TIo/~0/~0/~0/L/t/~0/q,yIN,0wEc/vLYo06XqHHE/s/yt"
},
{
"type": "encryption",
"pointer": "/aX/mEWzDa9vKQn/ic+iPwwa6Di/v7lIQ"
}
]
},
"groups": [
"e45c0f06476e06fb3a274aff"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"43e649fd4fd76e5fb455422e",
"d8cea6a792dec6ffb12c3412",
"e3497601047a6a0fdb1e0c81",
"b5decade038765a85f78e26b"
],
"_id": "19926087-0613-ae71-e870-090dee98c07e",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "2009-10-03T20:14:56.887Z",
"created_by": "6a37cba4a83b75a3924868c2",
"createdVersion": "culpa exercitation eiusmod",
"last_updated": "1957-11-14T11:10:20.197Z",
"last_updated_by": "61eb65671643a40fbb5fd4e0",
"lastUpdatedVersion": "sed id labore",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/xDYOB+-hfx/~0/~0/~0/Wit+daY/~0/QXn2ANq-/~1/cVWPvYj,/pk-S/UXO7u7/~1"
},
{
"type": "encryption",
"pointer": "/~1/~1/b/~1/DAEz-dzi"
}
]
}
}
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": -52896873.417067125,
"y": -16316345.907407254
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 65273744.204924315,
"y": -30893862.19315222
},
"error_handler": {
"name": "childJob",
"summary": "voluptate",
"description": "enim ipsum cupidatat reprehenderit",
"app": "nulla aliquip id ad Excepteur",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/yGo4A/~0/~1/YwAZME4o/~1/~0/W86Ddmoju4"
},
{
"type": "encryption",
"pointer": "/tcZR+T/UQ/H,-hCZmv"
},
{
"type": "encryption",
"pointer": "/ILXH5yM5O0/~1/~1/PaPKFD/IEHSFe3/RtY"
},
{
"type": "encryption",
"pointer": "/F5CzC/~1/WSKFpBk"
},
{
"type": "encryption",
"pointer": "/E/dWBgomYB/pyOBXN-z"
}
]
},
"groups": [
"591951f46168d2600118aaf9",
"1c4046dcaf0e31e834c2ced3"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"bbd78ec117587de3de4e603c",
"b5a8e11b491b13635fa93d69",
"068e566646a45c6db4a5bab3"
],
"_id": "94ff2cb8-acf5-a5b7-98c9-09f4254b2ef2",
"description": "dolore irure enim qui",
"errorHandler": {
"type": "esse amet",
"name": "cupidatat est"
},
"font_size": 12,
"created": "1987-06-26T01:10:09.935Z",
"created_by": "ceda36ec4af1eae1a5f41db1",
"createdVersion": "proident do cupidatat esse quis",
"last_updated": "1975-01-16T03:51:47.905Z",
"last_updated_by": "f120ff67fd85e2ee3bf2e036",
"lastUpdatedVersion": "dolor eiusmod magna cillum adipisicing",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~1"
}
]
}