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": 20386903.89343971,
"y": -39475411.369390614
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -30845125.375237316,
"y": -20030203.2158103
},
"error_handler": {
"name": "childJob",
"summary": "mollit occaecat veniam anim",
"description": "irure exercitation anim",
"app": "magna proident",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Bh/Th0oG/~0/~0/~0/~1/AqrSD8,DB/OkD0SVTT/~0/Jwlq+ZhN/~1"
},
{
"type": "encryption",
"pointer": "/sz,/V4mg/~0/~1/rwAXYo/pk6"
},
{
"type": "encryption",
"pointer": "/qQd9UwPye/sj/zIu/~0/pltNn,/fHoW7nVg2"
},
{
"type": "encryption",
"pointer": "/VzNSKH/~1/eR"
},
{
"type": "encryption",
"pointer": "/IJRZ3/~1/zS/piEc/~0/~1"
}
]
},
"groups": [
"c197084807aabdf016cb34de",
"cd32590dd0fcd1784cb22a93"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"95d6711a928229774f687e1e",
"ef4601df9753723b45946db8",
"2d642fb20aef35b4fae9fada"
],
"_id": "c62019ae-65d5-bd50-f918-b3abe6ccc5db",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1951-03-15T09:57:10.233Z",
"created_by": "6d8961d23281866e082863d9",
"createdVersion": "do irure",
"last_updated": "2004-01-01T03:58:07.304Z",
"last_updated_by": "a921e78ae335fdc064d9c6b2",
"lastUpdatedVersion": "ea nisi ut est",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/hPY/zbckahO/~0/kid,/TnvS4g/QFH3+9Pb/lF"
}
]
}
}
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": -73407447.95064564,
"y": -11609847.255481526
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 16167765.189909607,
"y": 52855159.15363428
},
"error_handler": {
"name": "childJob",
"summary": "in ex Duis ullamco in",
"description": "deserunt qui voluptate dolor",
"app": "ex occaecat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/ElIuPfh/~0/bwhkrB3OBR/~0/~1/UeLn6o/~0/~0/~1"
}
]
},
"groups": [
"5e03db1e32d89dc02ebf6c2a",
"05777753ff01ec4010e1813d",
"c2a88f5a7edbda5daffdd8eb"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"775930c018d3d7e275748b6a",
"8b780f1b3a03e90934877c0a"
],
"_id": "c2dbf3af-0d40-7172-c951-94ffa250c83f",
"description": null,
"errorHandler": {
"type": "cillum Ut",
"name": "magna dolore irure do minim"
},
"font_size": 12,
"created": "1994-07-15T12:58:00.757Z",
"created_by": "051c2bea6acdea41b32b4f0d",
"createdVersion": "in",
"last_updated": "1951-08-08T16:27:53.461Z",
"last_updated_by": "3be1c0ce593a06695ad5469f",
"lastUpdatedVersion": "Excepteur Ut",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/lu/Ma,,/q/~1/g/~1/~0/k9bco/OOjz2/dxky/V5/G"
}
]
}