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": -71310166.67113355,
"y": -61604779.302622296
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 73933064.97956261,
"y": 630462.4542958289
}
},
"transitions": {},
"groups": [
"956830cbd1fab1fc4d0b1e3b",
"e5ea17d09c4801297a7902b5"
],
"_id": "a3a10e83-8119-f9a6-a566-49b9a0b5bafc",
"description": "eu",
"font_size": 12,
"created": "1997-06-11T11:10:46.707Z",
"created_by": "b1ba31eb85c53164949013ca",
"createdVersion": "irure Excepteur",
"last_updated": "1992-04-14T09:34:27.101Z",
"last_updated_by": "cbceb8c31ba2e0f59030ea95",
"lastUpdatedVersion": "ut aute in",
"tags": []
}
}
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": 80691972.80418509,
"y": 67491168.85079715
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 94095418.01722935,
"y": -91012842.94860803
}
},
"transitions": {},
"groups": [
"925b27e7192a92e4d0540d36",
"d29fb84c5d98df283a07bbc6",
"e6e1c3163a66663f2725ff5b"
],
"_id": "0c569722-4993-d8d1-d120-9b9f7ba7bf78",
"description": "sunt incididunt consequat proident ut",
"font_size": 12,
"created": "1982-12-15T16:32:15.833Z",
"created_by": "c4394819ad98a22e7a9f9f5b",
"createdVersion": "sed exercitation",
"last_updated": "1964-04-10T17:30:25.047Z",
"last_updated_by": "20021c68b8bf0545a379f177",
"lastUpdatedVersion": "mollit do elit",
"tags": []
}