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": -34344233.48373659,
"y": 51253089.76809332
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 70959434.8250286,
"y": 73524203.86183223
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
"5127c0a8cc3f1335029b9644",
"98a662731fe195762af3fb63",
"9474e4b1eea7483af0b58ece",
"80784d1ea5f903a1883984b7",
"1f54bc658244e2fba26842b6"
],
"_id": "4372e45d-d0ed-a5ca-b52c-cbffadd9fe2a",
"description": "fugiat labore",
"errorHandler": {
"type": "velit eiusmod occaecat in nulla",
"name": "officia enim"
},
"font_size": 12,
"created": "1958-10-20T19:02:22.443Z",
"created_by": "41d1da4336ceda4ef1fbb987",
"createdVersion": "dolore",
"last_updated": "1954-06-12T12:37:09.416Z",
"last_updated_by": "db5ba9ca412a11919a8f3cc5",
"lastUpdatedVersion": "est",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/~0/ti/U,ZjVzK,"
},
{
"type": "encryption",
"pointer": "/~0/~0/u"
},
{
"type": "encryption",
"pointer": "/R2sZoC,Mg/~0/F-"
}
]
}
}
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": 13276946.73629725,
"y": 46595388.83534196
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 35953706.4426887,
"y": -33326881.159656055
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
"67527898138df18872db8c8c",
"aa6cff4972f7a5932ea8b217",
"7cdf7843189d33680e6f0901"
],
"_id": "0f826a74-406b-4610-4b0a-e2fd2df5ab90",
"description": null,
"errorHandler": {
"type": "commodo ea sit irure dolor",
"name": "cupidatat culpa"
},
"font_size": 12,
"created": "1962-02-10T13:06:32.274Z",
"created_by": "30e21a90d57016da23e463a5",
"createdVersion": "sed amet ut labore esse",
"last_updated": "1952-11-15T21:31:04.661Z",
"last_updated_by": "853cb221a94e83434fe757ea",
"lastUpdatedVersion": "eu Excepteur dolor in dolore",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/wGmBl-S3wlP/a"
},
{
"type": "encryption",
"pointer": "/~1/~1/nC8VKWj//Q5nXOIv/AJgapG/Z6FX,l5XB.z/y//oNvO,TE2l"
}
]
}