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": 73701418.4744663,
"y": -73566121.70970255
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -12362113.617170453,
"y": -50774340.79064322
},
"error_handler": {
"name": "childJob",
"summary": "consectetur Duis enim consequat Lorem",
"description": "labore",
"app": "sit dolore occaecat officia",
"variables": {
"error": ""
},
"groups": [
"de85d4c02876d307dfcab533"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"f805e0d36c5e44cdab74842f",
"026eeb9f4e65cf79f5d71d9c",
"727a8133a3b1ec5810a95410"
],
"_id": "12254053-82ed-6113-4f0a-02f36b2990b9",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "2000-10-03T05:18:54.538Z",
"created_by": "7d8ec556b32e47b8a8b87e78",
"createdVersion": "laboris sunt in minim Ut",
"last_updated": "2021-11-07T00:53:13.207Z",
"last_updated_by": "2c202e04c090bcb04e7d011b",
"lastUpdatedVersion": "in",
"tags": [],
"canvasVersion": 2
}
}
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": -95217983.94928056,
"y": 5688440.587961987
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -57738668.352096714,
"y": -76488133.47847247
},
"error_handler": {
"name": "childJob",
"summary": "amet proident",
"description": "deserunt qui aliqua in",
"app": "adipisicing",
"variables": {
"error": ""
},
"groups": [
"e494c0e8f8b2f9590e33b9ca",
"e0ec6fbe12034fd3053c3ce9"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"615163f3245a8e831221dc86"
],
"_id": "90e98762-0ba9-232f-086e-4025b80c7458",
"description": null,
"errorHandler": {
"type": "nisi consectetur",
"name": "nisi ut in irure"
},
"font_size": 12,
"created": "1996-06-02T05:20:23.853Z",
"created_by": "72b6545fcc7da95093198dd4",
"createdVersion": "adipisicing",
"last_updated": "1970-04-20T20:19:15.192Z",
"last_updated_by": "f8d283d94ebde6be3c93fcaa",
"lastUpdatedVersion": "consequat",
"tags": [],
"canvasVersion": 1
}