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": [ "c7ba86d6b8e8b673d23fdd32", "4dc43aea04bea2e6339c16a5", "b13d3bd58ce70180e242b644", "fbb4990ba499deaf03c50033", "55098b2cafe16b77f73c2ebf" ], "nodeLocation": { "x": 66066950.86840531, "y": -10625364.232975617 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "318d9a19d652d9d1ec9ab426", "ca41756c7ae51c22b4322689", "8af6bc67de658b115658d3be" ], "nodeLocation": { "x": 77486997.86691871, "y": 37930802.815107286 } }, "error_handler": { "name": "childJob", "summary": "consectetur sunt", "description": "commodo adipisicing fugiat culpa", "app": "qui laboris velit nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/I1eHtmm04xi/hf378F3JFWG/~0" } ] }, "groups": [ "035c679efa1f922eb4e89acd", "6a251793c4eabe735f862b74", "a5b6b885f017a4947c3ad52f", "14590d85a86366beecb4b437" ], "type": "operation", "nodeLocation": { "x": 2347609.8152700663, "y": 51626743.28774685 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "e3e422269f1412cbe27b93ed", "af0ac575afa95efbb2f26b05", "da0b1c8dd5222741e6a64001", "179721db69f0ed676bcd6573", "fbab8e05ede82362c510d05a" ], "canvasVersion": 3, "_id": "ed9a4c2a-ed6b-b0e9-954f-ec3abd9c0755", "uuid": "6c68f5f9-01df-2b64-dc53-d4bd770f81b4", "namespace": { "type": "project", "name": "pariatur nisi do cupidatat", "accessControl": { "read": [ "commodo dolore occaecat", "id pariatur reprehenderit", "Ut nulla culpa id ipsum", "labore adipisicing", "dolor elit irure" ], "write": [ "velit aute ea", "in sint aliquip cupidatat incididunt", "qui ex", "reprehenderit aliquip Lorem" ], "execute": [ "dolore aliqua exercitation", "veniam magna id", "consequat qui eu", "cupidatat Excepteur aute in nulla", "incididunt" ], "manage": [ "laboris voluptate ut ullamco", "in culpa" ] } }, "description": null, "preAutomationTime": 250000, "sla": -40258688, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "893fe0d99e4b877c5542c219", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "bc02d8b8730a1b4f43e76c7e", "lastUpdatedVersion": "4.69.69", "tags": [ "eu aliquip laborum ad", "aute nulla", "dolore minim" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/Rw/~1" } ], "migrationVersion": 56081150 } }
{ "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": [ "f73f10f045b8f5015513f892", "bc5695351f2eefc448502561" ], "nodeLocation": { "x": -62101545.117273815, "y": 30735527.087581545 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0f841f56dbacb58573c2d47a", "218cba217399972e9056a3e1", "dd96e3defa45eff02134153e", "a42bc5b5d8b24359989debac", "d30608d3026e255ba8c7a9a0" ], "nodeLocation": { "x": 19608558.535589397, "y": 55867770.9264971 } }, "error_handler": { "name": "childJob", "summary": "est", "description": "deserunt qui ex", "app": "consequat culpa labore pariatur id", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Ee4r8M9+rb/~0/~1/~0/~0" }, { "type": "encryption", "pointer": "/rmTxSt/s51fqpTId/~0/~0/~1/V2/~1/~1/~0" } ] }, "groups": [ "ea752366d7af36e10e38aaf6", "fd64ad4d411e6d722d4c2e7c", "a5c1c84021d8946ef6374f4a", "04d17dbc8e7341a941c4dccf", "94a9c21d4a62fab903080738" ], "type": "operation", "nodeLocation": { "x": -6215102.465260446, "y": 35457758.70617738 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "407986f6ac845036b67b3dda" ], "canvasVersion": 3, "_id": "a2715e98-5927-4290-4595-a18bb8054401", "uuid": "628503fe-3570-d644-7e2d-0983abd460d5", "namespace": { "type": "project", "name": "Duis est ad labore incididunt", "accessControl": { "read": [ "labore Ut", "laborum", "velit in" ], "write": [ "ut pariatur labore cillum", "fugiat eiusmod consequat", "Lorem sed dolore" ], "execute": [ "consectetur esse consequat", "culpa", "labore sunt consequat occaecat deserunt", "eu ut sit adipisicing tempor", "exercitation adipisicing veniam eiusmod aliquip" ], "manage": [ "eu velit nostrud est" ] } }, "description": "Push Config to Device", "preAutomationTime": 250000, "sla": 99652553, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "5636fa3ca0eae62bcf77c42b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "fa6b727115fea8fa1df4ccbe", "lastUpdatedVersion": "4.69.69", "tags": [ "fugiat velit", "dolor labore ex", "reprehenderit quis Excepteur" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/tZAb7QVRJ/~1/NmA1BIC/F.b" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/~0/q.MGLa/vca/vh+W/~1/sCwD.DDOv77/~1" }, { "type": "encryption", "pointer": "/VJN7NWG/F/zMD6FCK-/~1/su6t9sC" }, { "type": "encryption", "pointer": "/DV/~1/~0/m3X/k/xa/061/~0/K2tBjZPb/O/aY98GQjV/~1" } ], "migrationVersion": 59724516 }, "edit": "Ut sed ut eiusmod" }
{ "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" ] }