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": -60602006.91933888,
"y": -17954256.637605682
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 94113510.86146244,
"y": -16019593.157860383
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
"05098bc5970db517a305a0e3",
"667a7d02acbd2858d1f7d2f4",
"e790513015361cf6a998b335",
"1a0d26383c8a51a9afcca9f6"
],
"_id": "fb042ede-c476-73ff-47c7-16c75c6b9a0c",
"description": "ex pariatur magna",
"errorHandler": null,
"font_size": 12,
"created": "1986-07-25T05:02:35.294Z",
"created_by": "7f1cbc446a2882834fe94fc0",
"createdVersion": "sint reprehenderit dolore et",
"last_updated": "2003-08-15T16:11:54.056Z",
"last_updated_by": "042222031e8128d021d6a24d",
"lastUpdatedVersion": "sed magna ut est",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/Zpbgxnhjw/~1/~0/c/Gi.oD/~0/~1/WLHJlKRh/~0"
}
]
}
}
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": -93786803.93641861,
"y": 75831514.17866093
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 6564726.386241794,
"y": 98727144.22385925
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
"ba2a55f07e43698dccdd8cde"
],
"_id": "4ce1ea49-b3cc-e366-b0bc-8485fa1356a4",
"description": "ullamco adipisicing",
"errorHandler": {
"type": "dolor reprehenderit quis",
"name": "pariatur"
},
"font_size": 12,
"created": "1968-11-30T22:14:31.563Z",
"created_by": "f0b93080d568fc8b47b8da2a",
"createdVersion": "amet",
"last_updated": "1970-09-09T01:10:30.912Z",
"last_updated_by": "9fbc9733bc676ee6a6be8025",
"lastUpdatedVersion": "nisi incididunt consequat consectetur",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/jt/~0/mcZcS"
},
{
"type": "encryption",
"pointer": "/~1/yXkX5OWB/~1/zTXlRQ9/~0"
},
{
"type": "encryption",
"pointer": "/DDw4L/~1/MNifv3RmM/~0/gstnfFH1Hj/KS/~1/~1/~1/~1"
}
]
}