Summary
Add Workflow
Description
Add a Workflow to the database
Route
POST /workflow_builder/workflows/save
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| workflow | object | yes | Workflow's data. |
{ "workflow": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "cd74420bb89415997e9b6a79", "32e1bb2030f9ff8b35c59852", "2975d09772cd73b07d64733e", "64313bb2d2c805280e8ef0d2", "122bb98b1cdb55504a0ca154" ], "nodeLocation": { "x": -26926249.082905114, "y": -97966289.0391002 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "46b12db9f939003100e13399" ], "nodeLocation": { "x": 32240839.6026098, "y": -40386641.01033649 } }, "error_handler": { "name": "childJob", "summary": "irure", "description": "qui Lorem laborum", "app": "aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/YFCBHEh,AZ/~1/~1/~1/~0" }, { "type": "encryption", "pointer": "/v4jF/~1/h//L6Olgzfgcl/~0/~1/QJsc" }, { "type": "encryption", "pointer": "/~0/kZ,dK/~0" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ "dc4164b5aa567a4ad46aeccb", "ebd60c0e1c3345d061be33a8", "35b26462b28ff17a4cd6fe57", "29858866b533e230413d40b2", "287ff4304e76a2421cf6b171" ], "type": "operation", "nodeLocation": { "x": -67505949.13974535, "y": 54915475.88338253 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "4cadd5c30b663d1a622d004c", "29200bf2af248f10cbe05fe4", "9fe68fd3d07000d61ef9a4f1", "8ef8606125f8e2b80c245d18", "df9e79dda03f4b1ee0a6fab1" ], "_id": "2513c5d9-3837-5c8a-c1fa-0c5ab4229e89", "uuid": "9822e456-35b3-d7d5-4ba9-7e8830b2246b", "description": "do ea cillum", "namespace": null, "preAutomationTime": 5000, "sla": 40401282, "errorHandler": null, "font_size": 12, "created": "1980-11-08T20:02:34.71Z", "created_by": "af0504cda45667585053fcdb", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1988-05-21T02:09:38.528Z", "last_updated_by": "3c5c73bc68545b7fdaec7428", "lastUpdatedVersion": "4.69.69", "tags": [ "voluptate est laboris tempor" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/LHry7Cu4lWf/IthrTksWZ/~1/J,luT/YIGGIKSI/xlKzD" }, { "type": "encryption", "pointer": "/~1/s" }, { "type": "encryption", "pointer": "/cIMH/RWKqBj0sdW" }, { "type": "encryption", "pointer": "/~0/Se1anbXQe29/~0/~0/~1/~0" } ], "migrationVersion": 44789371 } }
{ "type": "object", "properties": { "workflow": { "$ref": "workflowDocument" } }, "required": [ "workflow" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| data | object | The new Workflow with its data and ID. |
{ "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "fde0ccd59f5dc554edda8f1a", "e94a43c392ed67e2340741c2" ], "nodeLocation": { "x": 34205332.73224415, "y": -58616999.10286404 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "70ac195f6d2beb75a9caf421", "c430c8fb580f5a7b7a5aa987", "5bdb80c526620179703c6f3a" ], "nodeLocation": { "x": -94530473.2349022, "y": -45668865.59771342 } }, "error_handler": { "name": "childJob", "summary": "incididunt ad irure", "description": "quis esse aute velit laboris", "app": "eiusmod", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1" } ] }, "groups": [ "50534496b9bc0bae1d51fcff", "34966e7c5adca9f0b0b2ed3b", "5141aa18cbd990ee756eba29" ], "type": "operation", "nodeLocation": { "x": 98806654.96522242, "y": -3895820.3635750115 }, "deprecated": false, "scheduled": true, "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "f8ba5db60f538f7d852b97d5", "523e6918d1e6f3b6bc4ce05c", "fe531d352a7d0cb31415a7b6", "f58f969cfc9b5bb823b366f1", "227461b080f5f76bb1d3de97" ], "_id": "8df7bdba-b75a-2b4e-5f55-82d8d19a385f", "uuid": "248e0b62-f6b2-4eb6-d528-054b5cc05e9b", "description": "Lorem aliqua", "namespace": null, "preAutomationTime": 250000, "sla": 28183560, "errorHandler": null, "font_size": 12, "created": "1964-07-19T00:53:32.335Z", "created_by": "c16e8e62b2840897e4cb5ea3", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2003-09-14T02:00:00.152Z", "last_updated_by": "1dd4213275e964301d7d08e8", "lastUpdatedVersion": "4.69.69", "tags": [ "esse officia dolor consequat", "eiusmod quis", "id eiusmod pariatur", "dolor occaecat in", "mollit labore ipsum aliquip deserunt" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/qz6zd/Gf880F4q/Tg7w2-S/~0" }, { "type": "encryption", "pointer": "/v+nwOmRY/~1" } ], "migrationVersion": 27045321 }
{ "$ref": "workflowDocument" }