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": 8796489.288799152,
"y": 396971.02877247334
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 21189734.315610886,
"y": -12287886.501150519
},
"error_handler": {
"name": "childJob",
"summary": "qui",
"description": "velit",
"app": "labore ex nisi",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/hot972/OD/~0/~0/ZA/pltVDM"
},
{
"type": "encryption",
"pointer": "/RL/~0/L99hyD2Ts/~0/~0/R2XO/~1/R3NZY1J3LrJ/~1/H//~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0"
},
{
"type": "encryption",
"pointer": "/B/dHsKdO/ctpd"
}
]
},
"groups": [
"80a2e199fa15c8e9532fe12a",
"453c0d399b779352e0cbca7f",
"09140655c055180f7c5d8bf7",
"12d511af356f09459284cf1d"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"d20d362d81bd4a424dffa823"
],
"_id": "f331620d-9e30-cb9e-a1cc-bc7167b3e6fc",
"description": "sunt ex culpa do",
"errorHandler": null,
"font_size": 12,
"created": "1971-06-20T04:45:27.905Z",
"created_by": "84b5eec61b68aca600365af1",
"createdVersion": "Ut",
"last_updated": "2023-03-02T09:52:59.536Z",
"last_updated_by": "1f89120350ad1ed52882b925",
"lastUpdatedVersion": "deserunt",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0/~0/~0/llqUiBkrNnw"
},
{
"type": "encryption",
"pointer": "/~0/~0/npNIIS/~0/U/v/5.NXU/iW0RsLKCR/~1/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/YNErvd77OKS/~1/~1/X2tdgbwtvA/~1/I.2Wjye5+M"
},
{
"type": "encryption",
"pointer": "/i231JE/ubKw5/yYDz/Z"
}
]
}
}
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": 38724340.45442185,
"y": -19598262.78077407
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -87953304.71239264,
"y": -6580230.95236668
},
"error_handler": {
"name": "childJob",
"summary": "elit",
"description": "ex Duis do cupidatat",
"app": "incididunt",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/aFoSRT/~0"
},
{
"type": "encryption",
"pointer": "/Vc4GE/~0/J.rr/Wir/kkCey/jWuV7D/h9z/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1/kGUlP/~0/~0/~0/~1/~1/~1/x/rhRscbu-hiS"
}
]
},
"groups": [
"c6e3d2b18e73775384298408",
"493fb97d0e004cdab9498baf"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"b9bb5e633962d4f1cfc5d6a2",
"cb8d9af7f824a08b819431cd"
],
"_id": "25fca002-dec5-7425-e4e9-a339a0230f59",
"description": null,
"errorHandler": {
"type": "ullamco fugiat sunt sit dolore",
"name": "aliquip reprehenderit minim"
},
"font_size": 12,
"created": "1951-08-24T10:58:37.905Z",
"created_by": "b3b864e0258d346e3d5f15cf",
"createdVersion": "irure aute id mollit",
"last_updated": "1977-11-06T03:38:42.157Z",
"last_updated_by": "d5d53d86059238480b079e27",
"lastUpdatedVersion": "Ut",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/U1Jt.8OuHe,"
},
{
"type": "encryption",
"pointer": "/f05rP6S/YbIRu4yN4A3/~0/HYFb/Sq/MN-J56+p45K/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/eb..pVu50/XnP.6XI"
}
]
}