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": 20983331.295296237,
"y": -83457253.03577991
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 98705163.89221784,
"y": 58674530.25593838
}
},
"transitions": {},
"groups": [
"6aadff03c2fae53f88fc0384",
"850273f28022f2bf1afba460",
"684529d28696e464c8f90a09",
"7be6a88cfd22850da750745c"
],
"_id": "530e7ea5-756e-d5f3-0d0c-a1f7f035b172",
"description": null,
"font_size": 12,
"created": "1962-11-16T16:53:43.503Z",
"created_by": "8616ce58375a90882d631477",
"createdVersion": "adipisicing non laboris incididunt occaecat",
"last_updated": "1966-12-11T05:15:57.836Z",
"last_updated_by": "42ca20c9a22f836646a4c524",
"lastUpdatedVersion": "consequat labore ea ad nisi",
"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": 83169546.11169356,
"y": 68677883.9880772
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -41468543.93988693,
"y": -5329976.407008186
}
},
"transitions": {},
"groups": [
"0a9382b1775d0614b88f2947",
"0eeb47d279f60a06e263474a"
],
"_id": "d45d3fdc-8875-fdb8-7221-e2784f97eba0",
"description": null,
"font_size": 12,
"created": "2009-06-06T12:45:11.172Z",
"created_by": "6a06e29cfc17d013116f04c3",
"createdVersion": "dolor ullamco",
"last_updated": "1985-08-29T15:27:34.797Z",
"last_updated_by": "8954a2bfa037827e1413beb4",
"lastUpdatedVersion": "ad ea",
"tags": []
}