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": -13979226.367046177,
"y": -49451310.42532194
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -54538666.021359414,
"y": -72591182.94092035
},
"error_handler": {
"name": "childJob",
"summary": "ea velit minim",
"description": "id tempor ullamco",
"app": "adipisicing quis",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/RPcXE35TF"
},
{
"type": "encryption",
"pointer": "/w2xc+R/SAkG/gg-"
},
{
"type": "encryption",
"pointer": "/~0/~1"
}
]
},
"groups": [
"a5025b72b4d2a5bac0d7cd31",
"c1f5250b255a8413c8759f0f",
"d94df4a03e021dff85026cf1",
"0d5c80ddf3dbfb3de3f0b076",
"130354e07d0cdf3270799579"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"d6b0fe5ae45c7cae101854f4"
],
"_id": "1ca3d61d-6ff3-7bb8-203f-2a7f00594360",
"description": null,
"errorHandler": {
"type": "in ut officia dolor",
"name": "et nulla sint"
},
"font_size": 12,
"created": "2008-12-01T13:15:56.252Z",
"created_by": "30ec2cc0ed96cc1468cc5b19",
"createdVersion": "voluptate quis pariatur",
"last_updated": "1986-12-20T17:19:58.237Z",
"last_updated_by": "7bfb57da12601e7c1832c0d9",
"lastUpdatedVersion": "minim cupidatat amet consectetur dolore",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/jM3rfwbP/~1/~1/h/~0/~1"
},
{
"type": "encryption",
"pointer": "/Gpo/dCA./LYFIC-OPB./yWW/r/cSz8pCDp9/~1/pJoyjlW5-jA/~0/ckpNd/wFHWRH0UT"
},
{
"type": "encryption",
"pointer": "/~1/n14P"
},
{
"type": "encryption",
"pointer": "/iDGCm/WVDV73fmorW/PlPIS/~0/L0U9sK/N/~0/~0/~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": -10581056.709107667,
"y": -557272.9318333119
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 54375320.90268883,
"y": -11871893.761672497
},
"error_handler": {
"name": "childJob",
"summary": "elit",
"description": "deserunt dolor sit ad sunt",
"app": "consectetur ut ad pariatur anim",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/B5.fRf"
},
{
"type": "encryption",
"pointer": "/IKcr.dszPX/~0/~0/~0/dd/~0/~0/~1/L71/wP"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/~1/~1/QOPAtuI/LpQbL6j5m"
},
{
"type": "encryption",
"pointer": "/M9r7O8/~1/Io"
},
{
"type": "encryption",
"pointer": "/Ym-FZ"
}
]
},
"groups": [
"1f9d53eca718c82950f8eebb",
"ab2154f6aaf303fc7c1d070e",
"2dee8377ab24ea072cf16107"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"30c2e2e081552257da0a047c",
"fd283ce1e933d4e8be954ceb",
"c07a364ec657da04643e9bed",
"971237d96a692d630f71ac4c",
"f15f37843880f1603fffb599"
],
"_id": "9112e50a-a1ec-714a-3853-3a96e908dd26",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1993-12-15T00:18:49.872Z",
"created_by": "96ed9327faa02efb32430d31",
"createdVersion": "Excepteur culpa aliquip commodo",
"last_updated": "2021-10-16T02:54:27.003Z",
"last_updated_by": "ed29a8ce9cf48831434ebdda",
"lastUpdatedVersion": "sunt cupidatat ut do",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/cWBQGMQ/DaK7akAr/mgtiOJeR9"
},
{
"type": "encryption",
"pointer": "/hp/~0/~1"
}
]
}