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": -69386215.13958725,
"y": 32380425.91309558
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 26249002.51242526,
"y": 37839443.902046144
},
"error_handler": {
"name": "childJob",
"summary": "eiusmod consectetur id in",
"description": "non cupidatat qui deserunt",
"app": "mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Q6i2lky3681/SrY1OgQU/~0/ow/~0/duE3ZuT/I8f4w3Sd/~0/~1"
}
]
},
"groups": [
"ab19db31a7e851574aef93aa",
"a42e8fa36601bcac9935b6d1",
"5f42fe73dbfafc2eb5e0001e",
"a7479ed452d0fdb90ef735c0"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"263699de09d4d062f624c73e"
],
"_id": "c0805baa-4c87-536b-bf3f-d8d99b650ff5",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1993-07-31T18:16:54.501Z",
"created_by": "98bfdea414c9d503289682cc",
"createdVersion": "esse ad ullamco Duis ex",
"last_updated": "1996-04-06T16:10:51.384Z",
"last_updated_by": "54521e51daa2c1975b8c3671",
"lastUpdatedVersion": "eu",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/GBrUkQdK/gLxDZUD6E8A/UmDci/~0/~0"
},
{
"type": "encryption",
"pointer": "/~0/~0/JiEET4uj-/~1/jIfvT8X/~1/krC"
},
{
"type": "encryption",
"pointer": "/~1/cU9bIwi1t/xxFPVre/~0/~0/~0/~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": -1832049.8407956809,
"y": -22608936.41511506
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -3727309.6072175503,
"y": 21786105.855431393
},
"error_handler": {
"name": "childJob",
"summary": "laborum in non sed",
"description": "ipsum",
"app": "velit sunt mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/F6Je/jk2B0/mRgfNWJi6W./F/~0/bQkd/~1/aUDbUliX/~0/~0"
},
{
"type": "encryption",
"pointer": "/x/oiRQBLf/~0/ihhtNv/~1/qzsYukmiBWq/GSBC/YQMu/~1/~1/~0"
},
{
"type": "encryption",
"pointer": "/O/ztKiO-.,2s1"
},
{
"type": "encryption",
"pointer": "/~0/IWE.vYX+/~0/nu/~1/yM8S9UJV/~1/~1"
}
]
},
"groups": [
"1714448149d20c008e94319c",
"5108475cb172fdb5c08f900d"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"cdf585ac9601a679f6f309e6",
"0d6f65c184c85a2b6757ced9"
],
"_id": "9a119ff4-69ec-8c17-b542-43875de36a01",
"description": "mollit consequat",
"errorHandler": null,
"font_size": 12,
"created": "2002-01-17T04:44:30.099Z",
"created_by": "642705f1f0c71ae2841f8cf4",
"createdVersion": "eiusmod irure ea magna",
"last_updated": "1982-12-05T12:13:05.263Z",
"last_updated_by": "d8b7b8c81eaa3e6ac930a70d",
"lastUpdatedVersion": "dolore",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/NFsE1AeV,M/owT-g4e5T5/N7/fPR8b/O81ul0G/HzalZroT,3/i/MCux7pt/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/QVg7R.F/Vd"
},
{
"type": "encryption",
"pointer": "/Rcfhhsc,/lMVxEhFc/~0/~0/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/~0/c7rHm1pL,/~1/~1/~0/PMR+xNvMR.t/dI8vdplpRmM"
},
{
"type": "encryption",
"pointer": "/lUWq/~0/~1/be51./~0"
}
]
}