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": -73242196.7784077,
"y": 24610758.412358895
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 10080331.747265488,
"y": 23321087.54140632
},
"error_handler": {
"name": "childJob",
"summary": "labore nisi",
"description": "sed amet Lorem culpa ex",
"app": "elit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/a/DSz32Y/KNGE0hKVg./~1/~0/q8EiV2/Qfkn2wdg/Qs"
},
{
"type": "encryption",
"pointer": "/~1/~1/~1/Tvr5HAEW.K/VBeuke8/~0/n/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/hFTK/~1/~1/~1/~0/bKX/Vhatr/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/GY/GnOnG8+0/~1/hK"
},
{
"type": "encryption",
"pointer": "/G/x3XvsNqa5l/j70Rlg57nY/~0/X9d/Yp/JDZ.og/G/zr/~1/~1"
}
]
},
"groups": [
"9ee7cef7f911ef104434c175",
"550279c34756f893746171a2"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"a51f7e598259e36a3755c38d",
"3d32a915df712fd3d201b279"
],
"_id": "1d254126-dbb4-5a4c-532e-59756661a266",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1997-01-20T04:51:09.057Z",
"created_by": "9dacd8fa889548f3a0dc761d",
"createdVersion": "sunt",
"last_updated": "2005-07-07T10:33:12.436Z",
"last_updated_by": "40b81c53b62d83e5c6c0dae8",
"lastUpdatedVersion": "aliquip labore",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/jRac,S-IhpV/~0/~1/G"
}
]
}
}
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": 95127963.66084605,
"y": -40978921.78646494
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -18842188.039820537,
"y": -78292038.26319876
},
"error_handler": {
"name": "childJob",
"summary": "irure",
"description": "tempor ea laboris commodo",
"app": "quis voluptate consequat et",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/uMBjojTD+/~0/bSa,ywhDs/~0/~0/HlPfwv,M9/mWWaK"
},
{
"type": "encryption",
"pointer": "/~1/e.1kyc/~1/z/~0/~0/g/R2gWSd/xOFm/~0/yACa0r9oU+"
},
{
"type": "encryption",
"pointer": "/~0/jd3HwW,5/~1/e8KDGL-WCo/~1/Z5698z5NsWg/cORs/qO4mPNN/aQ/~1/~1"
},
{
"type": "encryption",
"pointer": "/wg+Pgz1vjy0/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/t5/~0/~1/PIkIv/u/U3SlJO9C/~1/Om"
}
]
},
"groups": [
"02a3c62ebead6b8d57b12b00"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"b8bb6e8f7a488bf4d9b9eeaa",
"6e0452e8a8316042166ae30c"
],
"_id": "959a9907-e2ed-9c5b-1011-bfb783577349",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1973-09-25T12:40:15.173Z",
"created_by": "3bab095a5ffb59a8df564246",
"createdVersion": "proident",
"last_updated": "1970-11-19T21:09:37.53Z",
"last_updated_by": "ec747c5cac993cdfa980a555",
"lastUpdatedVersion": "dolore dolore",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/NeFlATtVH7i/g9/YVDdeWc/I,vP7IlKf/~1"
},
{
"type": "encryption",
"pointer": "/x90a/~1/w5a./hV/JDmr0x/vS5rbL5"
},
{
"type": "encryption",
"pointer": "/~0/~0/TDCl2K.CFY/NEgJLpiZP/hY6/NSGW/~0"
},
{
"type": "encryption",
"pointer": "/~1/VB/~0/xGAHZnThJ/p+Urko5Km/~1/KQLZEqvfx/~0/ZlO"
},
{
"type": "encryption",
"pointer": "/~1/AJ9SNP5s/WS4Jam/~0/~0/L+y9TqDlssc/~0/~1/~0/~1"
}
]
}