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": 32567712.50415364,
"y": -6366493.195767343
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -74872311.22230399,
"y": 65895689.57273534
},
"error_handler": {
"name": "childJob",
"summary": "esse",
"description": "irure id",
"app": "pariatur incididunt ipsum reprehenderit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/NmO"
},
{
"type": "encryption",
"pointer": "/vkc/tZ16NU/~1/~1/mz3Omi,TfV/txlf4WXy/n/IQkuPLejx/xl2aBG/OT."
},
{
"type": "encryption",
"pointer": "/~1/aS4/~0/Myd1Jh7dv/~0/~0/~1/mu3rNGt/i2YCd/~0/~1"
}
]
},
"groups": [
"161d9985bf943ae8b7f342bd",
"94273283ad79ad4a787bdce4",
"2f3eaa52094833a02c307701",
"ab95cd476da5678293fe2b2c",
"0be369d269b668cfd736006a"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"ec7bec403a152ce965cbf963",
"aa9e78c5d3cd3cc6c489652b"
],
"_id": "c23bdb41-f35d-7383-a990-508923903892",
"description": "magna culpa ipsum sint",
"errorHandler": {
"type": "esse eiusmod aute in eu",
"name": "deserunt enim"
},
"font_size": 12,
"created": "1987-10-13T05:59:20.051Z",
"created_by": "49b1913caeff5a53a5a2f0b3",
"createdVersion": "elit sit qui in",
"last_updated": "2015-08-23T07:23:11.693Z",
"last_updated_by": "abb1752c6fb01760c4c033ac",
"lastUpdatedVersion": "id elit Excepteur labore",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1"
},
{
"type": "encryption",
"pointer": "/lgxkTXHvnP-/~0/~0/~1/z8pssd38/Qqjxm59KFB/gNZZZ4X7q/a"
},
{
"type": "encryption",
"pointer": "/~1/BClRuPclv/UVQNzyT"
},
{
"type": "encryption",
"pointer": "/~0/lSs+T-MfT/OuK1rLjD,/~1/~1/fM/kj1WG"
}
]
}
}
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": -13277193.601032257,
"y": 19759812.838715658
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -95678857.03215939,
"y": 73497349.16773075
},
"error_handler": {
"name": "childJob",
"summary": "occaecat dolor",
"description": "culpa in sit",
"app": "ea",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/yYjV99/IwW/~1/~0/DvbqmnHD/~1/oFvicsGW/~0"
}
]
},
"groups": [
"b0c7711b87b7dda71f11bcd9",
"c9c849c885d68086b373e096"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"210c968deb67b2661c094f22",
"2a85ad3022f1c93d3a17e02e",
"22fd1650b418d82739faa5d7"
],
"_id": "6684560e-4dd0-3355-692d-3e14a02e17e7",
"description": "sint consequat exercitation reprehenderit",
"errorHandler": {
"type": "tempor",
"name": "Lorem et ullamco tempor"
},
"font_size": 12,
"created": "2015-01-31T03:49:56.479Z",
"created_by": "6bf2019a33a44583d8f7e191",
"createdVersion": "dolore est occaecat incididunt eu",
"last_updated": "2024-01-09T12:43:36.188Z",
"last_updated_by": "c5fedcd12f9c4aa458d8b9f1",
"lastUpdatedVersion": "et anim dolore",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/OxNW/FL3zy/~1/~0/~1/~0"
},
{
"type": "encryption",
"pointer": "/Q6Y/sRJm/~1/K3bwEGWx/viO-/Blm.4-/KIch8GKLhi"
},
{
"type": "encryption",
"pointer": "/zcEKPfu/OR9F8X4l/wJa5aPed/cVLD18KzA./~1"
}
]
}