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": -66199646.80806416,
"y": -30435098.398416385
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 5694536.219270453,
"y": 60854956.76321527
},
"error_handler": {
"name": "childJob",
"summary": "fugiat",
"description": "mollit",
"app": "Lorem proident commodo dolore pariatur",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/NH/ah2E//~1/ANXWlB/lsFgpeq8u-/G1qKv/QVG67o.ln/Y/~1/~1"
},
{
"type": "encryption",
"pointer": "/~1/zFfI9/a/NTfb9De6/C+TlitB9/~1/~1/qOUN"
},
{
"type": "encryption",
"pointer": "/~1/~1/jq9-yFZ/~0/yM"
},
{
"type": "encryption",
"pointer": "/iobQ/hBtLo3jpwH5/~0/jek/~0/VvjNw/D4H/N7z.97kx"
},
{
"type": "encryption",
"pointer": "/ZcjA/~0"
}
]
},
"groups": [
"3258322a37e455cd97551bda"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"b08ed329676fbcdfaa1ea79a",
"99ed650fb4d01543549bb64d"
],
"_id": "e71e94c4-a059-a512-cdfb-b76ec82f9068",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "2007-06-16T15:12:29.196Z",
"created_by": "3c8ad94c7534c6a5414f5274",
"createdVersion": "enim labore mollit ipsum aliquip",
"last_updated": "1999-12-09T22:57:22.127Z",
"last_updated_by": "8ecf8aa44d0cf2f832d3a7ee",
"lastUpdatedVersion": "aliqua sint veniam id voluptate",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/VM,/q4gZZP/YCXMaebtu,/~1/fN,qo/~0/v1/~0"
},
{
"type": "encryption",
"pointer": "/M3U/U.DWcgL/Yyq/hV/E5L/hdmOlI4JY4f/~0/~0/~0"
},
{
"type": "encryption",
"pointer": "/~0/cSVc1T7mOFl/~1/~1/~1/~0/~0/ZNCWAn+5/~0/OkrQre+ORQL/F/z.RxaN"
}
]
}
}
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": -18222549.666896984,
"y": -81674619.22228006
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 60953625.98551205,
"y": 84258037.65669194
},
"error_handler": {
"name": "childJob",
"summary": "in quis esse",
"description": "laborum culpa ea",
"app": "occaecat in fugiat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
}
]
},
"groups": [
"98996d4d9e5ae7ae746b3291",
"9f3d0c4353375a322a003ec7",
"8e3dd0ce23241b79860f4459",
"63db9f8853c8b0b19bdc5682",
"9d8ffed3a0ba603355d5643f"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"4e8e044ef5d7be104e7e3083",
"d00378629b02c3b4816ab0b5",
"f13f45063a83d5701d293e70",
"a166da43d81525ec598d5e7c",
"2e7799b4b3a6ac1a68178064"
],
"_id": "d2212dd2-056e-4e43-ff98-b60d6a447552",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1983-03-08T03:53:52.738Z",
"created_by": "2a2008bfba6e55fcf0dc7064",
"createdVersion": "eiusmod consectetur velit",
"last_updated": "1961-04-13T20:55:47.104Z",
"last_updated_by": "cd7e0b8b34aa3b441d8111b7",
"lastUpdatedVersion": "Ut ipsum eu esse",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/rW/~1/lOkJ+9MA/ku5s4Z/~0/~1/~0/~0/xf2jlq13PsA"
},
{
"type": "encryption",
"pointer": "/~0/~0/g5J,6+D9//~1"
},
{
"type": "encryption",
"pointer": "/W/~1/~1/~1/l/~1/EO/~1/~1"
},
{
"type": "encryption",
"pointer": "/K/h,nMNU/yGRKr,I85/C/~0/BQY+qZxpTT/zjj/~1"
},
{
"type": "encryption",
"pointer": "/r+4RJ/CUc"
}
]
}