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": 73127142.95048055,
"y": -44166870.88651643
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -74827175.38991444,
"y": -74851264.80842492
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
"453df012eb704257af921587",
"fe359e5e1c499404114d2b3d",
"b858accd27b089c97002a5a5"
],
"_id": "fda234da-8a63-c247-84af-19ac26765bd4",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1970-02-04T01:12:54.636Z",
"created_by": "94bbac504048ada7a3932ce6",
"createdVersion": "irure ad pariatur",
"last_updated": "1974-10-18T05:49:49.361Z",
"last_updated_by": "a8b4d9dab231ad98168f4632",
"lastUpdatedVersion": "cillum exercitation consectetur reprehenderit Lorem",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/KOF1jovS/~0/ftnWKEVdgFs/~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": -30932696.707213074,
"y": 96819401.41686717
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 93626060.7819801,
"y": 84495532.66883191
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
"86e3160c50b12bbf68f2e51e",
"f9fa0ceb45dc16b597d37355",
"39efbc98cda6b59a9e923c9a",
"3a633c080a7cd912521a8002",
"95b84532dfcf906ab8fb3c26"
],
"_id": "df5ab01d-4ef0-3ef5-2a3c-9e424b2c079b",
"description": "nostrud cupidatat nisi minim",
"errorHandler": {
"type": "tempor qui",
"name": "amet Excepteur qui minim"
},
"font_size": 12,
"created": "1978-05-08T11:59:13.002Z",
"created_by": "b9e44eae7b18ed3efd008ec8",
"createdVersion": "occaecat sint",
"last_updated": "1977-06-16T05:09:53.63Z",
"last_updated_by": "1dfe1bd85c7ca874103a4958",
"lastUpdatedVersion": "laborum ad",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/SfkS59/Sw/RU/Vupp"
},
{
"type": "encryption",
"pointer": "/D/~1"
},
{
"type": "encryption",
"pointer": "/a/~1/~0/Y/~0/D/Fpl/~1/~0"
}
]
}