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": [ "ba283a27791bff882f7f47bf", "364710e912679b6c0653ba9e", "c4bf5ab838655b6c47d921a1", "b6d52cff8c9257fc33ae2bb1" ], "nodeLocation": { "x": -4988356.7992120385, "y": -24770847.757628813 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "2493e2204794a4808fb117c8" ], "nodeLocation": { "x": 2651566.2412964255, "y": -37287585.142523974 } }, "error_handler": { "name": "childJob", "summary": "sint ea nostrud", "description": "nisi", "app": "commodo anim esse", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/kg" } ] }, "groups": [ "8de7ba03f17d02f22d76bf06", "142dc386c8c2a2f1999ab332", "213aaa6a2156f07f8a94f695", "c5fe0903cd43b174e744d4d4" ], "type": "operation", "nodeLocation": { "x": -34488738.893336505, "y": 17521064.169055298 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "7ae5d336449b45c2c83196e9", "07bc235fde827d9489cfee2a" ], "canvasVersion": 3, "_id": "b5387049-a316-0bfe-b2f9-30a2ec1dbd80", "uuid": "b7c6fda0-6365-90c3-d661-8f310001d8a2", "namespace": { "type": "project", "name": "culpa qui", "accessControl": { "read": [ "do incididunt" ], "write": [ "aute ut elit", "veniam" ], "execute": [ "elit in deserunt sed", "dolore cupidatat ex elit ipsum" ], "manage": [ "est officia", "tempor" ] } }, "description": null, "preAutomationTime": 250000, "sla": -25883551, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "511d5a752d0c9d5e6a4442be", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "3bed675feca531fcb1546977", "lastUpdatedVersion": "4.69.69", "tags": [ "nisi" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/SmUEEMhr/~0/CQ5b.3wX1L" } ], "migrationVersion": 18774883 } }
{ "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": [ "c30fbbc16570b4c7989536c2", "58b44ff8b36b144ff274c4e1", "24f8ff0dd67db0703810369a", "d09f0e6ed2d7eaf6f7abdb60" ], "nodeLocation": { "x": -22115284.072264314, "y": -58747948.482934386 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "584646109ceedcd21a4eab1e", "4e04d04a60df3de4891e5a74", "833e3630b7522115a073d421" ], "nodeLocation": { "x": -24420735.70468226, "y": 95655327.48501071 } }, "error_handler": { "name": "childJob", "summary": "Lorem proident consectetur", "description": "officia Duis nostrud eu esse", "app": "voluptate nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/X.1/hfD7Cq4j/pptcxRtj0K/ZaTbd.5vlZN" }, { "type": "encryption", "pointer": "/l4ZVbr/H/~0/r/WKw/PT/~0" }, { "type": "encryption", "pointer": "/u/~1/~0/SrIStcdYbb" }, { "type": "encryption", "pointer": "/~1/zWRGK/w/y2NuG9L/~0/YQt6U-.cAx/CMT/Sh/u0JTZRVdO6D/~0/~0" } ] }, "groups": [ "213fa2e09b8c7a4b21252dba", "24076176f3867e03b86d815b", "fa403b27d1bc6068e44ae2f8", "8c89e1a0fb6c2120992305b0", "de58b620c2301edecd86eab9" ], "type": "operation", "nodeLocation": { "x": 43760859.68823746, "y": -34988077.065835334 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "ea6e712171834a0868f3230e" ], "canvasVersion": 3, "_id": "922aa433-4526-32d9-1806-5f0ff70983d1", "uuid": "32c2d8eb-d68e-2909-873a-c4fef2e14157", "namespace": { "type": "project", "name": "Excepteur", "accessControl": { "read": [ "ea pariatur Duis in proident", "nisi", "officia eiusmod ex in" ], "write": [ "sint dolor", "non voluptate proident aute officia", "nisi dolor", "anim elit", "eu incididunt irure" ], "execute": [ "mollit minim velit", "Ut minim ex", "esse", "sit ex exercitation laborum", "veniam culpa in" ], "manage": [ "non voluptate" ] } }, "description": null, "preAutomationTime": 5000, "sla": -25023820, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "d95f87856927d01c39805b6c", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "80bb9b487f3d68c5d3414e91", "lastUpdatedVersion": "4.69.69", "tags": [ "minim nisi ea" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/iiFBlRk/~0/qIcb.t/~0/NI4SSx/~0/~1/~1/wSpjq2Jdw" }, { "type": "encryption", "pointer": "/~1/~1/c6xcd/MTn3Rs/~1/p/C9iBEzi" }, { "type": "encryption", "pointer": "/b" }, { "type": "encryption", "pointer": "/~1/f/KWken3TP979/smwCS.u-FWh/~0" }, { "type": "encryption", "pointer": "/Th/6/64qo/~0/~1/KEcDGFo3m/~1/~0" } ], "migrationVersion": 36400386 }, "edit": "cillum id minim do" }
{ "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" ] }