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": [ "7a99397772abe6c12ae8403e", "0e457f687f7431d9d7f5fd44", "eb32656dd41647424d89ab1b", "3bea0635d0be78630a1342a3" ], "nodeLocation": { "x": -8959724.317562625, "y": 29192427.059599698 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "21157866f52a8c8050f2cae3", "52b2347f84b92b0b3a8a544f", "be5115152efb41276efa3c4d", "9584c8dbde1c802b9d1a1538", "441d02e7323f62948e2b9465" ], "nodeLocation": { "x": -64945658.677579485, "y": -33089662.053019665 } }, "error_handler": { "name": "childJob", "summary": "consectetur et", "description": "dolor in ut nisi mollit", "app": "laboris laborum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/S/~0/uVUm/~0/IPD4Rio/HuWCZ" }, { "type": "encryption", "pointer": "/Bscf/Ig5Oy31/~1/~1/fThBe/~0/uQ0sZ" }, { "type": "encryption", "pointer": "/SHkx/Z2fBuJpl/K75W/~0/~1/~0/J0S2lGd7Uz/~0/NFWwbcl0/~0/~0" }, { "type": "encryption", "pointer": "/ZSia+X-/~1/~1" }, { "type": "encryption", "pointer": "/~1/JuSHfEijM/~0/ldyU/~1/d5.ELBnD/PAvWKk/KlQl4DulSIe/~0/KgU.I5LTd" } ] }, "groups": [ "4ea8de83e4d144c4d6427cc0" ], "type": "operation", "nodeLocation": { "x": 48720227.110713184, "y": -173219.41289143264 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "error", "error", "error", "failure" ], "autoRetry": true, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "b86c30b1280013989d69e5f6", "a735beaf582e5a83aa6b9810", "aec8dcb8270585de15acac4e" ], "canvasVersion": 3, "_id": "6148da03-5b28-223c-b299-11a9d0fa74d0", "uuid": "b99789da-b56f-0057-76ee-0d1aa4f4b8c5", "namespace": { "type": "project", "name": "laboris magna in", "accessControl": { "read": [ "et", "ut consectetur occaecat" ], "write": [ "reprehenderit ut", "laborum" ], "execute": [ "ex in laborum", "Lorem in" ], "manage": [ "reprehenderit qui" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 250000, "sla": -36266547, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "f4b46c9e2ba82d5691982443", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "dab22966269ec1508c43036c", "lastUpdatedVersion": "4.69.69", "tags": [ "Ut minim do", "consequat sint in", "pariatur dolor commodo sunt anim", "amet consequat ea fugiat cillum" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/r9Ocpjex+/XcqOhfO6H/~0/~0/X++FE6/~1/~0/~1/o9-8YUe/gA1gTt9dnc" }, { "type": "encryption", "pointer": "/gC1DG/nlcYno/VP7m/~1/etQNrNX/jL/lgcYOpwAY/~0/~1" }, { "type": "encryption", "pointer": "/q/~0/~0/I,m6LT/~0/~0/BS" }, { "type": "encryption", "pointer": "/V1mfV8/A7m27cRamf2/~1" } ], "migrationVersion": 80413818 } }
{ "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": [ "cd0bc01df512f42ec081005f", "b4fe7c648d2353a0e0f2e20f" ], "nodeLocation": { "x": 28318831.636618525, "y": 98686794.81768575 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "03a37e10fdd74c39c3a34643" ], "nodeLocation": { "x": 91456319.53394711, "y": 76591731.562365 } }, "error_handler": { "name": "childJob", "summary": "nisi proident", "description": "mollit amet eu", "app": "id est mollit veniam fugiat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/P/~0/W-x.f-2t" }, { "type": "encryption", "pointer": "/~1/c4t/~1/~0/~0/X+tMBa,NN/~0/~1/~1" } ] }, "groups": [ "a9fe104730eec308ec4ef305", "c79feeede467c8415d025520", "f51084086c6b5364013391fa" ], "type": "operation", "nodeLocation": { "x": 39750670.54980394, "y": 60293924.85646948 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "d6b24ea58ed526d788315fbb" ], "canvasVersion": 3, "_id": "bae0c25c-2acc-aaba-d61e-fbd758868620", "uuid": "0e42cf09-426b-7152-90b3-f8637414219b", "namespace": { "type": "project", "name": "ea sed", "accessControl": { "read": [ "deserunt culpa esse", "mollit aliqua ea do Lorem", "deserunt" ], "write": [ "Ut deserunt", "dolore ea nostrud Ut" ], "execute": [ "et occaecat minim officia", "incididunt", "eu Excepteur dolore magna", "sit voluptate eu" ], "manage": [ "aliqua Ut aliquip minim", "mollit" ] } }, "description": null, "preAutomationTime": 250000, "sla": 70936343, "errorHandler": { "type": "quis et anim cupidatat", "name": "et fugiat" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "b7fb7e8301586796cdc5500b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "cbb18acec1240c90122059c6", "lastUpdatedVersion": "4.69.69", "tags": [ "sint" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/nm-fBKU5J/wPL6/EQDh+.r/VYQyMcW/~1/~1" }, { "type": "encryption", "pointer": "/pDzOC/~1/QpNif.EIlUQ/BK7fE/wSsMpcX3/~1/Ckne/NbYoy" }, { "type": "encryption", "pointer": "/Gp/H/~1/~0/gdYWxnA494n/S6" }, { "type": "encryption", "pointer": "/~0/~1/~1/~1/~0/~0/A8q/~1" }, { "type": "encryption", "pointer": "/~1/hn1X,SUFqs7/ylsQdYm8CXX/~0/qsPffU5mtKq/n28U" } ], "migrationVersion": 60162435 }, "edit": "in" }
{ "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" ] }