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": 33991137.95338459,
"y": 86769754.13059402
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 33499472.030440673,
"y": 24921030.456126124
},
"error_handler": {
"name": "childJob",
"summary": "amet",
"description": "nostrud consequat quis aliqua minim",
"app": "dolor",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/ojJJ.,I/qatMh4/pTqGakyd/PbZRF/~0/~0"
}
]
},
"groups": [
"019f578f8833e49935ffd120"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"e2be01597bd23c8202032e0c",
"3566f4fe849b3a3f542ad2b6"
],
"_id": "7b47c8ae-f157-eef1-9112-8f701a4c0df6",
"description": "consequat nulla in ipsum",
"errorHandler": {
"type": "aute ut pariatur Excepteur",
"name": "culpa"
},
"font_size": 12,
"created": "1974-07-11T20:08:24.366Z",
"created_by": "7d0e98fb351da629ca0ae38a",
"createdVersion": "aliqua esse Duis non",
"last_updated": "1951-08-28T15:16:17.637Z",
"last_updated_by": "93abc6f264b63685d1045217",
"lastUpdatedVersion": "dolor pariatur in anim",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/iQRvc/~0/~0"
},
{
"type": "encryption",
"pointer": "/ixxgThvJE8/~0"
},
{
"type": "encryption",
"pointer": "/U5InRmR/l5QEyU/E2d/W/~1/U/fS/K/~1/C/~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": -23291925.75489776,
"y": 5557392.860879242
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 88953495.45454952,
"y": 73395843.97863925
},
"error_handler": {
"name": "childJob",
"summary": "officia Ut",
"description": "veniam culpa",
"app": "cillum nisi do commodo",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/~0"
},
{
"type": "encryption",
"pointer": "/afpMIzkH7t/~0/zUZv7/~0"
},
{
"type": "encryption",
"pointer": "/ZqNPaF/MnkBLJv/~1/~0/WGj2Y5Ku22z/wSm/Z/YDvwV79E/FOd/ZW,RRY"
},
{
"type": "encryption",
"pointer": "/~0/~0/~0/~0/wX6./Sf+yhLR"
}
]
},
"groups": [
"bdb1f84019383138aa9cbdd2",
"14f2f69def92bae3538d4851"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"08af8ce529bfc07254900899",
"27cd60aeec544b2fb6dc9c3e",
"d53112ebe90366d3c5d1965e",
"e00cde515bccb8a73ac97f42",
"efb6fbebe9c49e8fc20e82fd"
],
"_id": "c5bad773-2224-ea91-d770-5f3aa08f8fcc",
"description": null,
"errorHandler": {
"type": "adipisicing ut",
"name": "laborum commodo aliqua"
},
"font_size": 12,
"created": "1996-11-17T03:33:56.471Z",
"created_by": "1b889270cc0384d2bfdd9e64",
"createdVersion": "dolor",
"last_updated": "1987-11-28T08:30:38.437Z",
"last_updated_by": "c673877dfc1ce16df076e29a",
"lastUpdatedVersion": "aute nisi anim Excepteur Ut",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/O6T/~0/RMCbQy2J9sX/tM./~1/~1/IU7oZw/QNYYz58Pcl/BHesi/VbfI/TU"
}
]
}