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": -64045397.121256806,
"y": -92848620.26572025
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 72329489.33057329,
"y": -55357837.478471294
},
"error_handler": {
"name": "childJob",
"summary": "ut ad dolor exercitation",
"description": "nulla adipisicing do",
"app": "dolor irure nisi",
"variables": {
"error": ""
},
"groups": [
"f74456e5fe8b1f616077665a",
"c6d2225a8bfe4951234054e3",
"bcf3b6a7ae7746d29bae8547",
"03ab49d1b54baf4aad27aa6a"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"3f667d4ebfd96b186af370d0",
"6329e94db0b1589d100ad4af",
"9c184e0bb887d466ff434688"
],
"_id": "08a88a2b-0224-0fca-3cd8-bed8191685f5",
"description": "irure Excepteur incididunt sed",
"errorHandler": null,
"font_size": 12,
"created": "2007-12-22T11:16:23.253Z",
"created_by": "49b1056af8a988cffdddff7d",
"createdVersion": "laboris in exercitation commodo",
"last_updated": "1975-01-16T14:31:05.873Z",
"last_updated_by": "ebff3a3ff9506d2c4c31533c",
"lastUpdatedVersion": "sunt in in irure enim",
"tags": [],
"canvasVersion": 2
}
}
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": -75130039.05529891,
"y": -41685644.60724094
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 15207623.466212317,
"y": -4602870.610344872
},
"error_handler": {
"name": "childJob",
"summary": "reprehenderit in",
"description": "Lorem",
"app": "incididunt",
"variables": {
"error": ""
},
"groups": [
"eae05dc8033044d339ea8d87",
"d7281eb6c3ad5977de3c74de",
"1069cce840221fd627d57389",
"d8af0e2a2a3c4213b5625be5"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"153c4862204464e73d7cb64d",
"0cebf6ac869db4ab26b4f92e",
"5939fc55763a456ac767a298"
],
"_id": "20facbbc-efe4-8206-e64e-e8010231f57b",
"description": "Lorem magna in mollit",
"errorHandler": null,
"font_size": 12,
"created": "1946-07-31T21:52:23.071Z",
"created_by": "e15510aabcc542c9d79b8472",
"createdVersion": "est eiusmod nostrud",
"last_updated": "1950-11-11T13:19:47.657Z",
"last_updated_by": "5ce81d47ef5aca8ed23d1927",
"lastUpdatedVersion": "ad veniam occaecat nisi",
"tags": [],
"canvasVersion": 1
}