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": -43649907.56756839,
"y": 52977240.29819718
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 54062219.38751498,
"y": 75165225.11543715
},
"error_handler": {
"name": "childJob",
"summary": "nostrud ipsum",
"description": "incididunt minim",
"app": "ipsum mollit amet aliqua",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/zNud9EKl/~1/~1/~0"
},
{
"type": "encryption",
"pointer": "/~0/XQ819Eb/~0/aOgeDWR3BU"
},
{
"type": "encryption",
"pointer": "/~0/~1"
}
]
},
"groups": [
"f3c8257cda54b5a01143993a",
"3a416b0d358c4e24b38f6077",
"0f6ad65187c281102bab2a96",
"b31337f8874f11989ad64fbc"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"796a4d92fa455cb4731df4f2",
"e748f6ef838c93f517596216",
"fbc2784471824380f8717b5f",
"3326c63635430e5a23b45a42"
],
"_id": "1e5f51fc-99c1-51ef-4abd-2a2baee8d752",
"description": null,
"errorHandler": {
"type": "occaecat non est elit aliqua",
"name": "ex id velit anim"
},
"font_size": 12,
"created": "1950-09-16T16:44:32.959Z",
"created_by": "c2a5c0698f777845cc290dfc",
"createdVersion": "est irure consectetur reprehenderit occaecat",
"last_updated": "2005-05-07T16:10:34.781Z",
"last_updated_by": "cfdfa2d4ab80843e8c22e2d7",
"lastUpdatedVersion": "ut ex commodo",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/PVWK1GL/~1/~1/D/uv/pbYiG7"
},
{
"type": "encryption",
"pointer": "/kbjD1DATK.M/~1"
}
]
}
}
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": -58722278.97649594,
"y": -4043633.7312149405
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 62055557.763285756,
"y": -41349229.483309366
},
"error_handler": {
"name": "childJob",
"summary": "laborum mollit minim laboris esse",
"description": "pariatur",
"app": "in mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/WL5g5Sk2sSu/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/VGoX2qTWAlm/aKQnRM/j/bnl3/wX/~1/apPVe/~0/hKi1zC4"
},
{
"type": "encryption",
"pointer": "/xy/Asr6f0/~1/KEr1"
}
]
},
"groups": [
"585c4102f3cde41e861227f7"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"1109f8b3d7a77430bfb35295",
"c5a2ccb0a6c6cbbe10994d5e",
"6c3fbf267fef6146f47371a4"
],
"_id": "8bd1ec83-42f1-8ce3-b760-43053ce2ae5c",
"description": "fugiat ullamco mollit dolor tempor",
"errorHandler": null,
"font_size": 12,
"created": "2017-01-06T01:08:31.824Z",
"created_by": "7671d75a27bf94dc38c8b999",
"createdVersion": "Duis exercitation mollit qui",
"last_updated": "1947-09-29T16:12:09.595Z",
"last_updated_by": "40b5c9baaf8976ed34b5b408",
"lastUpdatedVersion": "irure adipisicing sunt",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/ixL/~0/~1/~1/~1/sw/~1/~1/dGNF7/~0"
}
]
}