Summary
Creates a new workflow document.
Description
Creates a new workflow document.
Route
POST /automation-studio/automations
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation | object | yes | Workflow to create. |
{ "automation": { "name": "Push Config to Device", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "7ebccec2f8252277032b38d8", "cc9071b1d7990cf49876d079", "d3668b7181a97cf6fda443a2", "ededb910791bd5753747d29f" ], "nodeLocation": { "x": 66364659.70591825, "y": 18510069.895335272 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "ecfdab38fc32ee9a069b4518", "c24cd9ea90c9eb6e7bdd5846", "5cc8d08cf613bb6d74320b2d", "c3e8b053f906bf754218b39e", "99c8d06412f1c2f3b41e86c1" ], "nodeLocation": { "x": -55673570.35520764, "y": 7968646.219305947 } }, "error_handler": { "name": "childJob", "summary": "labore consequat deserunt mollit", "description": "enim dolor", "app": "officia nisi aliqua", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/iByU/~0/~0/Sbom2e6RF/bpkTpKHy/~0/a.dAWqIPzoM/~0" }, { "type": "encryption", "pointer": "/~0/q9yRXKFq/JGvJHwx/pT/PhTgC,+VM/~0/QG6MRP6-." }, { "type": "encryption", "pointer": "/q5PGhk/~1/e/W/SnUSr/De/r-y6ud/hIyrcvTLge/~1/GDI/r+3S/~1" }, { "type": "encryption", "pointer": "/~0/tXioKl0-SI/~0/~0" } ] }, "groups": [ "b9d66755129ab716307f30bb", "9d9dce484417891df166ef81", "a39dd72e7f923f3f249a6d4e", "6bff820403c43eca4b020215" ], "type": "operation", "nodeLocation": { "x": 16049392.999959707, "y": -16066806.469006285 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "success", "success", "success", "failure", "error" ], "autoRetry": true, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "c2347ee2e8fa79e3b8f1db41" ], "canvasVersion": 3, "_id": "d0f7e259-7288-fe46-3536-31f108a0550e", "uuid": "054a69bf-9018-9f68-c91c-b5e3b62b5980", "namespace": { "type": "project", "name": "nostrud", "accessControl": { "read": [ "culpa aliquip incididunt", "tempor Ut amet", "voluptate", "dolore aute" ], "write": [ "ex tempor non et", "dolore qui eu ipsum consectetur", "voluptate Duis consectetur ut labore", "consectetur deserunt cillum" ], "execute": [ "aliqua amet proident voluptate", "in sed tempor ex dolor", "Ut ullamco" ], "manage": [ "velit", "esse ullamco" ] } }, "description": null, "preAutomationTime": 5000, "sla": 83061651, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "062076f5fe1b8576ddf54516", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "8a3516ce563cd1cfdf6f3105", "lastUpdatedVersion": "4.69.69", "tags": [ "et irure dolore non", "et", "amet proident elit", "proident esse incididunt" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/W,c/mXFzyyyc/~0/~1" }, { "type": "encryption", "pointer": "/~1" } ], "migrationVersion": 79953154 } }
{ "type": "object", "properties": { "automation": { "title": "automation", "$ref": "workflowDocument" } }, "required": [ "automation" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| response | object | Created workflow and associated edit URI. |
{ "created": { "name": "Command Template Runner", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "bedf18922890c9aa952765f1", "f4ef44b97e61d9045d8de078", "2f606522f4fd493107efc26a", "43355dfeaeb860ddadc96b93" ], "nodeLocation": { "x": 58666420.03652963, "y": 75643809.47329009 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a562f9a1422f9b2a779d2fac", "516ed6fbbc6cb621124c2af5", "37f4ddf229754bd0a95acaa1" ], "nodeLocation": { "x": -85452546.47897673, "y": -14170669.401267856 } }, "error_handler": { "name": "childJob", "summary": "Excepteur tempor exercitation", "description": "nostrud Excepteur in dolor", "app": "consectetur esse", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/~0/iH/J/k/~1/~0/~1/iW/~0" }, { "type": "encryption", "pointer": "/s9,6kpM8F/~1/~0/~0/YOFGi-6b6hK/c6nec83Hq/Hy35r/~1" }, { "type": "encryption", "pointer": "/~1/SduQ/GC/~1/~1/~1" } ] }, "groups": [ "3269d9570907ce007f2e89be", "0b09349f84e09088af110ca7", "55b5302bb2b2e15a20b597c3", "0b75468d0964c9ade9a26d04", "f9e39af4cad7cf7a84a47b78" ], "type": "operation", "nodeLocation": { "x": 20435683.5018726, "y": -85058691.75516571 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "success" ], "autoRetry": false, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "97105dc089052f1629e8a77f" ], "canvasVersion": 3, "_id": "ca3c7a63-2285-d363-5fb9-a474311a134d", "uuid": "bc0f409d-92f5-9fa0-582b-ad03bec9b768", "namespace": { "type": "project", "name": "est cillum officia", "accessControl": { "read": [ "aute", "fugiat sit", "deserunt voluptate in est in", "cupidatat nulla minim adipisicing" ], "write": [ "mollit laboris officia", "ullamco esse cupidatat irure", "adipisicing cillum", "officia", "proident culpa sit mollit" ], "execute": [ "magna Ut deserunt mollit" ], "manage": [ "ipsum voluptate laboris Ut" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 5000, "sla": 17289705, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "a9fd4bebf015f170b4d2361f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "cc8336dbd096e495e0131d7e", "lastUpdatedVersion": "4.69.69", "tags": [ "proident est ea nisi officia", "ex adipisicing" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/O6/~0/lsypz/~1/~1/~1/e/kx.FIzj/pupMyhR8" }, { "type": "encryption", "pointer": "/mpi/~1/~1/~1/HjoOuB5dc" }, { "type": "encryption", "pointer": "/CD//~1/mz/BjVpPl./Fjn/I3c/sSK" }, { "type": "encryption", "pointer": "/~1/lkVq/xcN-V/~0/z6hK8T2Xnr0/~0/g4utUr/~1/~0" }, { "type": "encryption", "pointer": "/IR8" } ], "migrationVersion": 74446570 }, "edit": "reprehenderit magna anim officia" }
{ "title": "response", "type": "object", "description": "Created workflow and associated edit URI.", "properties": { "created": { "$ref": "workflowDocument" }, "edit": { "type": "string", "description": "URI to the edit page for the newly created workflow." } }, "required": [ "created", "edit" ] }