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": 37450090.11963481,
"y": 53794442.49923885
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -35532661.13903923,
"y": -95517744.24213307
}
},
"transitions": {},
"groups": [
"b09b0e44e29cb9e8ffbad89c",
"448810a19031a9986c698459"
],
"_id": "c83d007e-0b29-a7f1-de5c-84371b37d48c",
"description": "dolor",
"font_size": 12,
"created": "1968-06-30T00:53:22.221Z",
"created_by": "6aeea1d8f5e061c0de8e6997",
"createdVersion": "ipsum consequat sint mollit ad",
"last_updated": "2013-06-29T01:20:31.88Z",
"last_updated_by": "507a39fad4375c9dc8b8892d",
"lastUpdatedVersion": "cillum quis",
"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": 73677035.07022241,
"y": 131103.79135107994
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -39882778.90035556,
"y": -77159688.24569517
}
},
"transitions": {},
"groups": [
"e495ff224fa6183211829e73",
"e3f40e3e5f6d046b25f21187",
"88bed91c81c36d54297690f3"
],
"_id": "83f428ae-21a2-dd7d-e7c5-e99af41faa60",
"description": null,
"font_size": 12,
"created": "1964-07-20T04:26:00.389Z",
"created_by": "760c5467b755866d698c27e7",
"createdVersion": "incididunt Excepteur labore proident",
"last_updated": "1994-03-16T11:59:03.889Z",
"last_updated_by": "92949f7df3cb4f6a19bc3161",
"lastUpdatedVersion": "officia in",
"tags": []
}