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": [ "79c53214e6d3d59c0223a9f1", "6ccdd86e301c659941633208" ], "nodeLocation": { "x": -36776782.009562716, "y": 14880360.537976682 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "d9be77b6d989ba21018cd8f1", "5efd06a255bc81a8c668aada", "af2570f320d6388180cdfc74", "3632c4f613e1dd98d3ad7357", "622d32a8d0759bedce4a52fb" ], "nodeLocation": { "x": 50159130.3502273, "y": 55098646.45120782 } }, "error_handler": { "name": "childJob", "summary": "veniam fugiat cupidatat ad", "description": "adipisicing dolore labore", "app": "et labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/AlAkthlq9ah/ymDDs/s/~0" } ] }, "groups": [ "57e79ee34c12aebeb0b7e693", "9bd2720fd79da4c3b76ce483" ], "type": "operation", "nodeLocation": { "x": 63971978.360164076, "y": 65090883.86781371 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "failure", "failure", "error", "error" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "b7f49ba2001b4b479c101e00" ], "canvasVersion": 3, "_id": "1dec6b26-2091-6b05-efbe-4b506bc22a13", "uuid": "dad89574-38d4-8766-3f1b-0c6bccda1567", "namespace": { "type": "project", "name": "nisi Excepteur", "accessControl": { "read": [ "esse sed ad amet", "Excepteur ullamco et", "minim magna sint", "sed in laborum", "qui in" ], "write": [ "velit", "id deserunt reprehenderit" ], "execute": [ "dolore minim Lorem exercitation", "ut Ut", "voluptate culpa fugiat ullamco" ], "manage": [ "veniam Lorem consequat", "Lorem laboris sit Duis in", "dolor aute in", "Lorem ullamco minim" ] } }, "description": null, "preAutomationTime": 5000, "sla": -49286923, "errorHandler": { "type": "occaecat dolor Lorem", "name": "in proident" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "f52a3f8dbf17b6ea3fe37bf0", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "f32913bad9a8ba3b1b5f880c", "lastUpdatedVersion": "4.69.69", "tags": [ "tempor Duis" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/Hb0v4C9SC/fMp/6/~0/ln7v8VXc3/~0/~0/rXpir/~0/~0" } ], "migrationVersion": 55887597 } }
{ "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": "Port Turn Up IOS", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "33e5c8bd6621cf95b5be48e1", "029423fc2fb2ea020b1bb630", "cbc92d6d2f571930e98eff30", "d0e410c8748c46f3caf6e9bb", "a2a0f39437e9d90d457c1614" ], "nodeLocation": { "x": 79206961.35606736, "y": 8830624.80296944 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "507eefdc288f1de4e2f3721f" ], "nodeLocation": { "x": -54515491.80439987, "y": -67116160.88824424 } }, "error_handler": { "name": "childJob", "summary": "adipisicing laboris magna", "description": "nisi ipsum", "app": "qui aute culpa non proident", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/g0PL9Id/x/ASXguLG/~0/~1/S/lWCS4B11g//~1" }, { "type": "encryption", "pointer": "/Q9dOTC" }, { "type": "encryption", "pointer": "/~0/~1/yVd7OlQiR7d" }, { "type": "encryption", "pointer": "/~1/sbq/~0/~0" } ] }, "groups": [ "5ac665a2225371ab0127ad5e", "2889c10e2202f7b53303e6e6", "42ae3078d582dbbf4eb8f687", "2832dea0ee502234901e0522" ], "type": "operation", "nodeLocation": { "x": 27390678.049586505, "y": -92229912.5825902 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error", "failure", "success", "success", "failure" ], "autoRetry": false, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "14deb9198173e5a407c0199b", "f3aab5c12a165fda2a60720d", "1ca894b10bd431195014e836", "68295c6ac7684097b1616ed1", "b94c13b7d701f2439d14225b" ], "canvasVersion": 3, "_id": "319e2e70-4b76-9a8b-9d83-bde22225368a", "uuid": "915c3056-6d61-9796-5576-e6985bf363f3", "namespace": { "type": "project", "name": "commodo ut pariatur in", "accessControl": { "read": [ "in", "consequat laborum velit cupidatat", "Lorem eu do anim nostrud", "commodo dolor veniam", "est" ], "write": [ "nostrud amet do sunt sint", "in qui dolore", "incididunt Lorem", "pariatur in Lorem", "ad amet reprehenderit eiusmod" ], "execute": [ "labore", "velit non minim irure" ], "manage": [ "veniam" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 250000, "sla": -98545776, "errorHandler": { "type": "culpa", "name": "Ut" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "9e1d681b7a9751851b771cc7", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "2f08adb200a3421cd6b87d8e", "lastUpdatedVersion": "4.69.69", "tags": [ "nisi", "in ullamco", "Ut in dolor ullamco", "commodo veniam dolor" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/PX/j/~1/q/HDzSCb6u" }, { "type": "encryption", "pointer": "/~1/gPp/~0/~1/~1/OYp0G/q" }, { "type": "encryption", "pointer": "/~0/~0/lN/~0/~1/OMjX,i+Sgb/YpUG" } ], "migrationVersion": 57830791 }, "edit": "tempor mollit" }
{ "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" ] }