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": 87413594.54893288,
"y": -84431612.74373399
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -37274903.03076313,
"y": 92500179.04160973
},
"error_handler": {
"name": "childJob",
"summary": "mollit incididunt dolor ut laboris",
"description": "id velit",
"app": "proident",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/~1/E0J5/JQH,o/o/l2tS/~1"
},
{
"type": "encryption",
"pointer": "/~0/~0/Qbh73/he29Hz5z/mSK/~1/d0vqx5khq"
},
{
"type": "encryption",
"pointer": "/MsjSG/isKsL0Y2/~1/oJyTw/~0/n9/FS+5pUM/~0"
}
]
},
"groups": [
"3b155f1a88c3064080aa265d",
"54a170d566104a9c5345e5aa"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"1ce076d14544b9a61b8dc7ba",
"1718be0b13d6ce0997b8324c"
],
"_id": "847e1356-c799-e1a5-47e8-f7f4013b36a9",
"description": "aliquip do",
"errorHandler": {
"type": "dolore amet in",
"name": "ipsum nulla"
},
"font_size": 12,
"created": "2012-10-15T09:26:11.982Z",
"created_by": "dbc392ad9790069aeb4e4020",
"createdVersion": "ad dolore",
"last_updated": "2009-11-17T15:08:22.185Z",
"last_updated_by": "68118e867fafbc76e62c1ff1",
"lastUpdatedVersion": "in culpa elit sed proident",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/k"
},
{
"type": "encryption",
"pointer": "/zKz1UArj/~0/~1/y0c.Q1lZwA/twqR40Zn6j"
},
{
"type": "encryption",
"pointer": "/peYwxkh0f/~0/~1/VByW025Ak6s/KQffSOCkN/EDT.4/~1/szs.r3,Dg1c"
},
{
"type": "encryption",
"pointer": "/~1/VcFgcqXF/~0"
},
{
"type": "encryption",
"pointer": "/~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": -57280405.553174995,
"y": 54466758.42952943
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 7698135.656972796,
"y": 18118151.82804714
},
"error_handler": {
"name": "childJob",
"summary": "nisi qui sit quis",
"description": "exercitation",
"app": "laboris ut culpa non",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/rQ/fSK/~1/YL/~0"
},
{
"type": "encryption",
"pointer": "/~0"
}
]
},
"groups": [
"dd8de856cac136bd688710fe",
"27fbcad5079c49b6e2064527"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"cc1640edb9b09821070bdaa4"
],
"_id": "daf99914-2310-fb5b-4f9b-5773460bb7e9",
"description": "reprehenderit labore cupidatat esse ipsum",
"errorHandler": {
"type": "et dolor",
"name": "ad laborum"
},
"font_size": 12,
"created": "2006-07-10T16:42:20.361Z",
"created_by": "910a9c8b07006572e222c5bc",
"createdVersion": "sit Duis eu laboris eiusmod",
"last_updated": "1981-03-20T18:14:06.449Z",
"last_updated_by": "2a43e0dbe1864ec079b27e56",
"lastUpdatedVersion": "cupidatat Ut sed reprehenderit",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/NDKY3u5LTV/LXw85C1VZ/~0/EekZ-wU/EN-ucqM/I514/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1/A/XNl/ly/~0/beghV3"
}
]
}