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": -21506588.434274927,
"y": 44863215.42491537
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 50718979.597272396,
"y": 77402336.42632744
},
"error_handler": {
"name": "childJob",
"summary": "aliquip sunt aliqua",
"description": "consequat",
"app": "labore enim nisi nostrud velit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/yi8Pr.EqT/JcSie-cqNk"
},
{
"type": "encryption",
"pointer": "/PPD"
},
{
"type": "encryption",
"pointer": "/~0/b4R3wa/~0/~0/dxVlJgWx/~0/~0/~1/iyWUH"
},
{
"type": "encryption",
"pointer": "/vEqWjH/D5htO/sm/nXrhFK/~0/Rof7-aBpk/~1/~1/~1"
}
]
},
"groups": [
"0985bd1ca9a36aad3aad2acd",
"981d9024484b27c7317dbd61",
"7cafc2094734ac0826a4e819"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"ed166c980d6d41edfc0e508f",
"b0c53f401d8ae92c70a610b3"
],
"_id": "6f1500b4-c61a-9c0f-f195-22fe6cdb8f28",
"description": "in labore incididunt minim exercitation",
"errorHandler": null,
"font_size": 12,
"created": "1979-08-10T22:24:57.332Z",
"created_by": "df730fc9879c03db89c04a95",
"createdVersion": "sit qui nostrud voluptate",
"last_updated": "1967-12-13T22:48:25.133Z",
"last_updated_by": "168dfe25076f3c28a2bd8205",
"lastUpdatedVersion": "reprehenderit nostrud dolore irure quis",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/C/5KS/aRKtaWmi2/~0/~1/i9rjfc/~0/qCBmmvzz/i3Z/~0"
},
{
"type": "encryption",
"pointer": "/lzsr//~0/m9BjP/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/dBzVA1LmmoC/q5,/~0/~1/PSgY/~1/~0"
},
{
"type": "encryption",
"pointer": "/ktjfX/Q1f/+Mm/Q5ON/~1/Ef/~0"
}
]
}
}
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": -86260524.96730092,
"y": 35357040.58310786
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -76937167.05311525,
"y": 13699677.570928827
},
"error_handler": {
"name": "childJob",
"summary": "nostrud",
"description": "Excepteur minim commodo",
"app": "commodo ex aliquip",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/GRg3HsnAi7/T9+/~0/~0/ahB/VaLCuG7zKF1/HpDl"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0/~1/qmB+,0pNk"
}
]
},
"groups": [
"24fd395b98121b3c70f6228a"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"ac46ed765687c59aa750baa0",
"653265882c4c6961d390965f",
"a56c8c365f68a2ec25aaced5"
],
"_id": "41275b9e-8af5-4db8-b2d0-c3268115ef17",
"description": "aute",
"errorHandler": {
"type": "qui",
"name": "labore laborum et"
},
"font_size": 12,
"created": "1948-03-19T06:38:00.375Z",
"created_by": "5631947b47b7cf187d4dadce",
"createdVersion": "ut in id laborum deserunt",
"last_updated": "1962-04-03T08:47:30.359Z",
"last_updated_by": "ad245cf2fc887e6f177e35b8",
"lastUpdatedVersion": "ullamco",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/K.IkbuC3DHW"
},
{
"type": "encryption",
"pointer": "/~1/~0/~1/~0/~0/~0/~0/~1/O1Hw.8/e+1lFK"
}
]
}