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": -45809855.56026538,
"y": -17861093.853698
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -80558285.67331819,
"y": -81669628.41776675
},
"error_handler": {
"name": "childJob",
"summary": "ullamco dolor sed incididunt",
"description": "nulla sunt",
"app": "tempor ex culpa cupidatat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/P4bRjb95Tk"
},
{
"type": "encryption",
"pointer": "/~1/Iu0/~1/YIZQ/IhrXsnlO/H4rW7CwmI/~0"
}
]
},
"groups": [
"4f8bc28d01edced3274155d9",
"257db000e848c3a714fc22ed",
"46106d8785258c6d67328027"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"01153818ed1fa793c367e98a",
"5412afe81a65dbbd04ffb77e",
"27db71a1fe083829aa254504",
"39262c5302f8aad845a5cdb6",
"6f4e098d2079db0830f6951a"
],
"_id": "61999980-95f3-172d-43ae-659eac1b87e8",
"description": null,
"errorHandler": {
"type": "id ea laborum pariatur ut",
"name": "esse consectetur labore ea consequat"
},
"font_size": 12,
"created": "1991-10-25T14:22:59.433Z",
"created_by": "1318e22ada0eccd97713b233",
"createdVersion": "pariatur cillum occaecat sunt dolore",
"last_updated": "1957-06-24T02:09:47.271Z",
"last_updated_by": "c80265b88bf8305af825074c",
"lastUpdatedVersion": "in ad eiusmod cillum",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/ITO4cN/~0/GkDCdmuIG/yX3uziTBVM/~1/~1"
},
{
"type": "encryption",
"pointer": "/~1/stEF/~1/~1/YH/F2l.bVMq/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0/Vk/hQqAbt/bXe7wHO/jV8/IFJOu0/~1/~1"
},
{
"type": "encryption",
"pointer": "/QOBceRU/~1/r69/FOLfIjKG9p/pVs,XFZ"
}
]
}
}
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": 49399076.05781871,
"y": -70964647.41102678
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -4615481.976220563,
"y": -13499580.024534464
},
"error_handler": {
"name": "childJob",
"summary": "aliqua dolor in",
"description": "velit eu Excepteur",
"app": "ad aliquip ipsum commodo",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/~1/~0/~0/~0/lzA60to/~0"
},
{
"type": "encryption",
"pointer": "/l"
},
{
"type": "encryption",
"pointer": "/HW/~1/~1/~1/~1/~0/~1"
}
]
},
"groups": [
"65591f915599ed6e437dbfcf",
"5014a4ed9b9cf39787f1ee47",
"a83210e29b65cd26caaeb0e2",
"bbfa53ab9f4f81883e2491c1"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"396fc7d7253d78492c6f3fdd"
],
"_id": "0786f0b2-4703-2eaf-cb88-0600802cf729",
"description": "et voluptate occaecat nostrud ipsum",
"errorHandler": null,
"font_size": 12,
"created": "1973-12-30T11:08:17.458Z",
"created_by": "32584f9d994a26c625a40513",
"createdVersion": "exercitation elit",
"last_updated": "1993-11-08T01:43:08.637Z",
"last_updated_by": "d6d97dad66632d6dcdd99524",
"lastUpdatedVersion": "ut sunt id ea",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/P/~0"
},
{
"type": "encryption",
"pointer": "/CSgYUshS/r1AY,e+ei/~1/~0/~0/~1/~0"
}
]
}