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": [
"c6120fd42e4e48949f7b572f",
"11fe727d5cada324ff971003"
],
"x": -81574560.09256063,
"y": 45218376.84538567
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"bc27b05dd9a26ab4b3b7bc8a",
"d342a6d07cd3211d4728b41f",
"9e8a73f063f0d0ce4108ec62",
"a743dee979669d42dd5f7cdf"
],
"x": -71855568.47448318,
"y": 77629166.69634473
},
"error_handler": {
"name": "childJob",
"summary": "consectetur",
"description": "culpa et adipisicing sed",
"app": "labore magna eu cillum do",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/SC30pH"
},
{
"type": "encryption",
"pointer": "/~1/e.YR2r//spF/~1/~1"
},
{
"type": "encryption",
"pointer": "/aTSlhTNxh/ayh/DwvA3/n,.Z/E040W0/~1/gF"
},
{
"type": "encryption",
"pointer": "/JL-/~0"
},
{
"type": "encryption",
"pointer": "/iv/~0"
}
]
},
"groups": [
"39da8e2518dc53ced49ab7dd",
"390dfac035c7c52ed83d97cc"
],
"x": 89738274.82599962,
"y": 1555079.6266891658,
"type": "operation",
"gridCoordinate": {
"x": -7415293.927432388,
"y": 6661593.037791744
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"5856aea821e4ec90b0619d68"
],
"_id": "29afa0d7-0763-c3e3-dbe9-98adb26d7037",
"description": null,
"errorHandler": {
"type": "occaecat",
"name": "in dolore"
},
"font_size": 12,
"created": "2003-03-02T08:15:21.047Z",
"created_by": "781687d6111499a11f47bd8e",
"createdVersion": "culpa proident adipisicing ullamco consequat",
"last_updated": "1953-07-13T21:32:20.491Z",
"last_updated_by": "d769882b0b10887d36b25151",
"lastUpdatedVersion": "sunt dolore aliquip",
"tags": [
"Ut veniam tempor ea sed",
"tempor",
"est ut adipisicing",
"consectetur cupidatat",
"eiusmod ut nulla nisi"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/EH-Jpi/~1/~0/~0/~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": [
"2329c41063cdeeb327841110"
],
"x": 31689063.431318358,
"y": -4150080.039470479
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"42b1936ac48f27c30ca016e4",
"ce6afa97206d983d91633760"
],
"x": -24056584.01421848,
"y": 38401212.636653006
},
"error_handler": {
"name": "childJob",
"summary": "occaecat quis ut cillum",
"description": "aute do",
"app": "Duis occaecat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/gO/~0/~1/fQytGydu/JB-OIYQyNf"
}
]
},
"groups": [
"50c2d9164d17e401909e24ce",
"da613cd505771c1800dc3264"
],
"x": -31610001.336564466,
"y": -60965700.93542919,
"type": "operation",
"gridCoordinate": {
"x": 16193636.848046243,
"y": -26126781.05769311
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"fc9fd0026eb762b2123dd628",
"46552581ce4ead8b335b93bd"
],
"_id": "49abc317-f4c3-4e49-6f56-b1d10c23e6ac",
"description": "Ut amet ut labore culpa",
"errorHandler": {
"type": "laboris consectetur",
"name": "consectetur"
},
"font_size": 12,
"created": "1977-07-13T20:22:07.622Z",
"created_by": "04cb808509c528fd24150b16",
"createdVersion": "ad",
"last_updated": "1969-07-21T04:17:13.778Z",
"last_updated_by": "924ca558296eb9e0d09b9185",
"lastUpdatedVersion": "ad",
"tags": [
"quis consequat ut id",
"qui non irure",
"esse"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/ys/~1/A"
}
]
}