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": 94244691.57874733,
"y": -13185071.132672682
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 2851531.19640702,
"y": 35608179.84893206
}
},
"transitions": {},
"groups": [
"9cae185bb53d64a701976ffa",
"443ac0551b06f11077ed7d78",
"886573f6cb709ba47e467047",
"75b4a34aeb95f4bd55cfcfb9"
],
"_id": "aa8003f9-a1be-c89c-eefa-180176093e39",
"description": null,
"font_size": 12,
"created": "1958-09-18T23:13:10.622Z",
"created_by": "fd33b32bad8b686ae268c508",
"createdVersion": "nostrud",
"last_updated": "2006-06-18T04:21:19.087Z",
"last_updated_by": "91d17776b0588dbe6924ca31",
"lastUpdatedVersion": "pariatur officia in enim Lorem",
"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": 11426841.477678806,
"y": -37451544.75804053
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 11691014.226622805,
"y": 28437159.490669608
}
},
"transitions": {},
"groups": [
"44a77e92ff30ddeaa92edbbd",
"0d9c52f9edd645901f4dfe47"
],
"_id": "73503b67-594c-5110-58a4-6291240115fe",
"description": "incididunt",
"font_size": 12,
"created": "1949-03-14T11:15:15.523Z",
"created_by": "9d3575d49356400147bb85d9",
"createdVersion": "quis in voluptate fugiat laborum",
"last_updated": "2011-06-04T08:36:08.184Z",
"last_updated_by": "ec0c36ac54f740f432ac5e3b",
"lastUpdatedVersion": "ad qui ea fugiat",
"tags": []
}