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": "Command Template Runner", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "55dfab6284d17b16c24afd4e", "4dd79a7cdddb624e2da408d6" ], "nodeLocation": { "x": 5531941.017873481, "y": -87649582.15282026 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "1152b009abf8ec360da87f72" ], "nodeLocation": { "x": 75609769.31369674, "y": 75192001.22458994 } }, "error_handler": { "name": "childJob", "summary": "dolor aliqua mollit consequat officia", "description": "nisi consequat", "app": "pariatur sed proident dolore nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/DKMt-D/V4SLN,HGxQ2/k2KyPi0VT/~0/u4.SxBLPy/R/fq9nJ/5/iRD/MQGbZy/OfEe39Urw" }, { "type": "encryption", "pointer": "/~1/nU5fmu.aqG/JN45izw/cGvpZrpja/~1/~1" }, { "type": "encryption", "pointer": "/~1/fu/~1" } ] }, "groups": [ "bf62c2730c109049b2cebf83", "6549e688468bc78401cc4c7a", "ecc29821bc45a40a1e11b47f", "8998c8abf724397a8404edab" ], "type": "operation", "nodeLocation": { "x": -5060258.973726034, "y": -75951291.23568048 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "37cac01ef08e6038ae6ad133", "487e6e452cfff904763a4fc3", "1c89ffedeb9b9851f7464f4f", "86b3e9a98d52f89b67ef10ba" ], "canvasVersion": 3, "_id": "555b12f2-bb8b-b045-ce68-4d44479d2f79", "uuid": "381a9092-a9f7-d80f-7ea3-bbb0d9498c9d", "namespace": { "type": "project", "name": "eiusmod in", "accessControl": { "read": [ "in velit adipisicing enim ut", "eu deserunt est", "voluptate" ], "write": [ "amet cupidatat ex ullamco", "commodo pariatur culpa nostrud", "anim non enim ipsum", "amet in", "voluptate" ], "execute": [ "ullamco pariatur dolor minim in", "sint" ], "manage": [ "cupidatat pariatur", "pariatur aute nisi deserunt", "Duis et nulla sit consequat", "enim Lorem tempor fugiat pariatur", "ad dolor magna voluptate" ] } }, "description": null, "preAutomationTime": 250000, "sla": -26065441, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "b344adb168abe711795589ec", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "5402dae388842332466d57e5", "lastUpdatedVersion": "4.69.69", "tags": [ "cillum reprehenderit dolor et id", "velit occaecat ea", "do Duis cillum", "proident ut", "sit aute aliquip dolore eiusmod" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/tt/Px41y.y/jf4lZC-/~0/~0/~1/OAXZx/~0" }, { "type": "encryption", "pointer": "/mp245Pu/YwK0ouZ/h/~1/LHm9Nv+p/jbV.Nk7Qf4/~0/AlGjSPKItu/~1/wOb10/~0" } ], "migrationVersion": 86190690 } }
{ "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": "Push Config to Device", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "333ff83dc7783b95294a5b4e" ], "nodeLocation": { "x": 86710764.47776568, "y": -97054424.51398501 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "b266aec9a3f06854b5ef3b11", "44c988f46dd2eb51705589e2", "4c10d825b71b1e733243bc47", "179e6b5fc93551badfa5c0a9", "5eac0324b762e8e6d6cb374f" ], "nodeLocation": { "x": -82012183.66127491, "y": -43871455.53755918 } }, "error_handler": { "name": "childJob", "summary": "occaecat Ut fugiat proident sit", "description": "esse sit cupidatat", "app": "cupidatat velit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/IG8lu55JW/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/K.iU/RmC/QmcYT6/~0" }, { "type": "encryption", "pointer": "/tj8UwfGLjLI/~0/Ek9EI/S/e9Yb/dXq6YWSaV/IlK/PhTI9/P-e/r/~0/~0/N3mPW" }, { "type": "encryption", "pointer": "/~1/pPiy5t.T/~0/yUbe/SE/~1/c" }, { "type": "encryption", "pointer": "/~1/AV7ySZf/DwI3rWmw4fE/Lt+/wLS7p/~0/~1/~0/~1" } ] }, "groups": [ "6ed6d4c3f8c7b0d0f7d97c05", "27fca53d1c20e72c7a699220", "82dc9943352fb0519f3b80ca", "15bdb0bd74f6f3ec52e90f3b" ], "type": "operation", "nodeLocation": { "x": -17299777.712577358, "y": 93698235.70276755 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "eedaefd3c9eac7f96320f151", "b3f56e368facba11e9b7ae93", "bad81940a2cf0bca395d28ab", "f254a1016b6e42f8d210aa77" ], "canvasVersion": 3, "_id": "ddc4fcdc-c5be-e0c6-d270-f692a14d6596", "uuid": "dbbf970e-73ab-3f2f-ca18-04570a866662", "namespace": { "type": "project", "name": "non consequat deserunt Duis", "accessControl": { "read": [ "sit", "enim Ut ipsum", "cillum commodo mollit cupidatat Lorem", "minim cillum deserunt", "aliquip Lorem" ], "write": [ "amet anim in incididunt", "sit", "in ut aute aliqua" ], "execute": [ "ullamco", "reprehenderit", "minim dolore ad nisi", "exercitation Ut" ], "manage": [ "occaecat est", "ut", "nulla laboris fugiat voluptate quis", "aliqua est aliquip mollit ullamco", "dolor Excepteur et" ] } }, "description": "Push Config to Device", "preAutomationTime": 5000, "sla": 87179829, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "d5b4ab2aefe7e93c02669bc1", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "2e3b46c7aa4099854e015e16", "lastUpdatedVersion": "4.69.69", "tags": [ "Ut est laborum in" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/V-U1q/~0/r2CwqW/~0/Z2Hy/~0/~1/c8NjbujTEB/~0/~0" }, { "type": "encryption", "pointer": "/Sp.sqUSqX/o/~1/~0/g5ioRu/~1/gvOq/~0/~0" }, { "type": "encryption", "pointer": "/EoMN/k/~0/~1/y2X2/~0/~0/~1" }, { "type": "encryption", "pointer": "/~0/~1/v4wn19/~1/f2DO,S/~1/~0/~0/TjaGBxKB493/Pc-/0ZOc" } ], "migrationVersion": 91447002 }, "edit": "in elit fugiat" }
{ "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" ] }