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": [
"fc88d281bebe5f50616e437f",
"9109e874a4c8ae31b21f4a94",
"3c3a4d69ea105dee0dd679e8",
"7eb72109a33d4cd4362c141c",
"65f2ebec9c6d771fa0e19724"
],
"x": 82998551.0583978,
"y": 45944262.46373168
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"a7864dccf68a1b1c2f9fe482",
"7a4951c3199e339d8cb81251",
"02733a46ab6a43a04ee00ebf"
],
"x": -36126471.332178235,
"y": -17128245.5885569
},
"error_handler": {
"name": "childJob",
"summary": "sit eu",
"description": "pariatur",
"app": "reprehenderit Lorem amet in",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Ck/qYtaKU/~0/LuGjZl/~1"
},
{
"type": "encryption",
"pointer": "/fmdz-b2LF/Gw/~1/W-rMEE/~1"
},
{
"type": "encryption",
"pointer": "/olFG/gQK.mBtZ/hnmpeVZi."
}
]
},
"groups": [
"a590671884e0893bc16c4ad8",
"9a96420a8edc4a4227bf0c1f",
"afca49280b7fff289b06fd29",
"fe535bfa3af69b6cdddf8977"
],
"x": -49714714.22302907,
"y": 64809225.55601171,
"type": "operation",
"gridCoordinate": {
"x": -54373149.67931872,
"y": -8827852.525751516
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"262e1c5a765f18216bc4bb77"
],
"_id": "7099c5d9-1834-2607-e57b-46d36ef1520e",
"description": "dolore aute laborum officia",
"errorHandler": {
"type": "ex nulla",
"name": "dolore tempor aute"
},
"font_size": 12,
"created": "1997-10-26T18:15:55.682Z",
"created_by": "c2540bea70da7647f94e3222",
"createdVersion": "proident minim amet nostrud",
"last_updated": "2023-06-25T00:48:56.872Z",
"last_updated_by": "b77f4f3e2de7c60c3d244871",
"lastUpdatedVersion": "do reprehenderit",
"tags": [
"dolor cillum ad nulla"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/QLpDkTRsQ/SGtSk/~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": [
"291a048ca8f06b72979fcb9d",
"4af17c980988becae90cffa1",
"5562f9040dd3c6f6d7cb1ef7"
],
"x": 91090168.84300077,
"y": 56375805.635849744
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"8d9a0d12bde20d8746259ed6"
],
"x": 48397919.07245478,
"y": -92076640.37077539
},
"error_handler": {
"name": "childJob",
"summary": "consequat id dolore pariatur",
"description": "aliqua in",
"app": "est labore pariatur exercitation commodo",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/TFuKc"
},
{
"type": "encryption",
"pointer": "/q4/~0/VeIUpaF/fOUCGr3RN/~0/J36s3ecxjQ"
},
{
"type": "encryption",
"pointer": "/~0/eUGDUX5GfWn/mfjx0/cXE7kzDW/eMNHdn/~0"
},
{
"type": "encryption",
"pointer": "/~1/I7w.u/~0/T/fOqcnQq,/i"
}
]
},
"groups": [
"fd2045edfec64385a89e7601",
"6159062583fbf40a1b526a08",
"dc5c0f65a9549e44a70d2f45"
],
"x": 62810963.33298305,
"y": -47282463.86550277,
"type": "operation",
"gridCoordinate": {
"x": 47690186.72234541,
"y": 16168815.725341454
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"e1f6457aeac44ea12ea1f255",
"34400c526ea2085c8215140c",
"1504a57fe04646eee0464bd1",
"89173d752b24296aadfdad41",
"47247257102a1f3fbeb2bd12"
],
"_id": "fcfcc159-a1bf-5306-52bd-e7e0dd2dcc7b",
"description": "occaecat magna",
"errorHandler": {
"type": "sunt velit qui amet",
"name": "culpa"
},
"font_size": 12,
"created": "1967-11-04T23:54:31.642Z",
"created_by": "456dba57c3f7ffba7f10c573",
"createdVersion": "ad cupidatat consectetur",
"last_updated": "2018-04-19T07:20:35.202Z",
"last_updated_by": "63fe91c1e8a31d79d97e6265",
"lastUpdatedVersion": "aliquip fugiat Excepteur amet id",
"tags": [
"elit non nulla tempor",
"sed dolor laboris exercitation officia",
"commodo"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/ylVLx3Yn0G/HR3QJL9qkN+"
}
]
}