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": [ "62b61ad4c68a55db96fbe16d", "07d1274d6817989ade5e2646", "eb79dde01f2cc1e758945acc" ], "nodeLocation": { "x": -45743772.11531444, "y": -45139445.47333484 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a02d8fb7e68f02628c44005d", "322478ccdc5d48a7affa8d90", "cc055f26292f8d4133a7e557", "9da0ee28acaba49ca9721648" ], "nodeLocation": { "x": 22468134.426972687, "y": -51839355.79668302 } }, "error_handler": { "name": "childJob", "summary": "esse ea consequat", "description": "et ipsum mollit Duis esse", "app": "eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/qmLIBD,C/qR/jY5P5I,/~1/dX93UYo4Tnp/d3DyS+/~0/~1/RYgwBvA/y.o/~0" }, { "type": "encryption", "pointer": "/xhMCli/hhZDniTe.t/px7SRrw/dC+fH//~1/f28SsJ./MF6Nq/yq4jg+Qe/~0" }, { "type": "encryption", "pointer": "/~1/A98+EYV/N+6iSGI6V/w0O/j/f6" }, { "type": "encryption", "pointer": "/~0/~1/F/~0/~1/XDAZVr2/wz/~1/CG382q+J/H.uB" }, { "type": "encryption", "pointer": "/~1/r26s+TB./~0/~1/u" } ] }, "groups": [ "f29a4fc7b77c2a8199a19a1d", "541ffc5341515d7524ae094a", "24bb288b953883ac8be206ff", "118c7da21e11d1c314d57c77", "1c066b4bb2947c9af6cc668e" ], "type": "operation", "nodeLocation": { "x": -37412007.59970447, "y": 17101041.82016106 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "success", "failure", "error", "failure", "success" ], "autoRetry": true, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "f77a6e01fc2cd76470160b99", "97bab03df562f6a9d22ee4a3", "110c66f3898cb09ff7b89247", "bdfbcea23c25dfc516a18cfa", "4132695012a2f6de037e2eb4" ], "canvasVersion": 3, "_id": "4142eee5-39e4-c5f6-d08d-f196cac48803", "uuid": "49651639-aa99-78ad-0396-126fc4f31cd9", "namespace": { "type": "project", "name": "est laborum commodo", "accessControl": { "read": [ "dolor sed", "officia incididunt sed sint" ], "write": [ "officia sit reprehenderit", "quis deserunt consectetur ipsum", "do est esse reprehenderit" ], "execute": [ "aliqua", "cillum anim", "nostrud in in", "sit" ], "manage": [ "nisi", "nisi aute deserunt", "adipisicing anim", "exercitation" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 250000, "sla": -95227431, "errorHandler": { "type": "et occaecat", "name": "in ad" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "9faa804e63a4a8fc7ca4dae1", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "2e30db6b64d4b2fbf084b911", "lastUpdatedVersion": "4.69.69", "tags": [ "magna", "ea velit in" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/Gt+/PzqE/~1/y/~1" }, { "type": "encryption", "pointer": "/~1/~1/aP/~0" }, { "type": "encryption", "pointer": "/~1/~1/dLmaxhKi/~0/OM8CMMPINHQ/~0/X/~0/oEh.f32TN7B/DR" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/VLj63wbJ1d" } ], "migrationVersion": 22606525 } }
{ "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": [ "0298b42257163f6368ae4c14", "61344e2aa4d4c6e9fbe316d6", "9ce3c887bf09d512cdecc201" ], "nodeLocation": { "x": 8762007.41598238, "y": 30428481.38124658 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9c0aaf4dc7ee56443ca75095", "36c3864ce7a17feec81d634b", "bbe69dea675ae0ae11c3b31a" ], "nodeLocation": { "x": 68596638.84979597, "y": -88281587.05984502 } }, "error_handler": { "name": "childJob", "summary": "enim reprehenderit do anim", "description": "commodo aliqua in reprehenderit", "app": "consequat velit culpa", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/JM82Pd/~1/pRQB5aRoM/Ze-R+hgM/~1/dhq5Qxb,/d/acUu/Jrz-Iw/~0" } ] }, "groups": [ "1aabd9940cf85d86b11776f2", "d41206627d5e497e9123ab18" ], "type": "operation", "nodeLocation": { "x": 43266769.10051489, "y": -58271931.36371056 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "df4ecacd7576d8d723607fc8", "9a2f46a71036020c91c0f327", "a51d2b9bcfb30eac23b27e53" ], "canvasVersion": 3, "_id": "7aabab1b-a9b5-70fe-2768-aedcdbbf2bd6", "uuid": "da4ae42c-ba2d-7401-be52-d9ee0d607870", "namespace": { "type": "project", "name": "dolore dolore deserunt", "accessControl": { "read": [ "ipsum pariatur anim Excepteur", "officia magna ea", "id laboris ullamco", "voluptate" ], "write": [ "qui", "nulla", "sed proident quis", "nulla" ], "execute": [ "aliqua" ], "manage": [ "consequat ut" ] } }, "description": "Push Config to Device", "preAutomationTime": 5000, "sla": -13218070, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "2cd3c3624fd48316462608de", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "bdc7e9823f8e7db7cfc5b7b9", "lastUpdatedVersion": "4.69.69", "tags": [ "culpa sunt dolor in in", "nisi quis mollit fugiat", "culpa consectetur in cupidatat", "nostrud incididunt Duis Lorem", "ipsum ex tempor velit" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/mA5l2g+Nu/~1/UVU,Lcjwd/~0/~0/~1/~1/~0" }, { "type": "encryption", "pointer": "/nNnA1.g/hD/~1/APOZblkdeaq/gHG6/~0/~1/m,r9s/~0/YLxLweA" }, { "type": "encryption", "pointer": "/Wy1KcRe/~0/WFYVhRoAAnM/joGPh4T." } ], "migrationVersion": 28099039 }, "edit": "in irure" }
{ "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" ] }