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": -17562481.201988026,
"y": 5176047.187288716
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -83794037.60363773,
"y": 8595852.432521716
},
"error_handler": {
"name": "childJob",
"summary": "dolor officia dolor",
"description": "exercitation non dolor sed esse",
"app": "ad sint",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/dqc4d5bB/k9v/~1"
},
{
"type": "encryption",
"pointer": "/~1/j/~0/~0/~0/~0"
},
{
"type": "encryption",
"pointer": "/ejRe6rYx/Wo3EfRXWl/~1/IccpuAf/~1/x6/RtcPnlPr/UrVuISv/DU/SG-Xs0AHzV"
}
]
},
"groups": [
"c551a54ef34d248d270e21f0",
"85f80c46389521b825cd4a2a",
"e71a87aa6f5309227b4a0249"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"4856340b78afac86df4832ff",
"1ade1e743c24c2bb5f834509",
"f3d1b9801bc52a19665618a0"
],
"_id": "d9966031-ffc5-97ad-dc03-6f671ff4b292",
"description": null,
"errorHandler": {
"type": "nostrud cupidatat esse occaecat",
"name": "sed"
},
"font_size": 12,
"created": "2012-06-01T11:16:29.405Z",
"created_by": "e01ea4eda8e66fb8b1a2e980",
"createdVersion": "laborum exercitation in enim",
"last_updated": "2000-12-09T04:18:09.387Z",
"last_updated_by": "4615278a784b8dc157c8bd94",
"lastUpdatedVersion": "labore",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/JB/"
},
{
"type": "encryption",
"pointer": "/nLRKpc5Mk6/~1/m/~0/XcVk7s/Qor.J/yqz4XJ6Qxrb"
},
{
"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": -71231723.59038717,
"y": -19272931.325185508
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -54353524.2439638,
"y": -25971543.198034346
},
"error_handler": {
"name": "childJob",
"summary": "id culpa sint Ut",
"description": "aliquip",
"app": "adipisicing voluptate occaecat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/L2/H/r+xe6na/~0/~1/nR/~0"
}
]
},
"groups": [
"bf1681ea9a88503a21ce9e1c"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"1c21a2b06f5125832e049041",
"4797216ca6635cba043d11e7",
"209629e537803a4585abb8ca"
],
"_id": "72202abe-7d45-215f-dadd-c97f01476e2b",
"description": "aliqua veniam",
"errorHandler": null,
"font_size": 12,
"created": "1989-10-10T13:05:37.004Z",
"created_by": "95e1568cd8ddc8405b3a0257",
"createdVersion": "cupidatat laboris",
"last_updated": "2022-01-04T17:27:10.452Z",
"last_updated_by": "da7c6cee4cedc48ce0a3e564",
"lastUpdatedVersion": "pariatur amet consectetur laboris est",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/YlT,"
}
]
}