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": "Port Turn Up IOS", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "58f7e92abee19eb0548df1a2", "b139733cec35ecf95863357d", "4db6d6f0157a3f8e001e5f55", "316e32ea88901426b5716475" ], "nodeLocation": { "x": -71198523.80749711, "y": 6788552.696474686 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "b074c338518f89f589959e00", "9d38541b3906ab903ee31961" ], "nodeLocation": { "x": 83413278.6766848, "y": -21465932.894410014 } }, "error_handler": { "name": "childJob", "summary": "velit Lorem in cupidatat", "description": "id exercitation", "app": "aliqua ad", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/~1/p2vb7xRPtb/~0/~0/RVvpk6gIk" }, { "type": "encryption", "pointer": "/~0/kg1fRrY8,x/~1/SE8/iA.171xQtK/~0/~1/EZz+RuY4ky" }, { "type": "encryption", "pointer": "/IODQXl/uuRKCjJdusa" }, { "type": "encryption", "pointer": "/MzSnj+4/~0/~1/qAZL/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/G" } ] }, "groups": [ "c9305340812c9334aac9351b" ], "type": "operation", "nodeLocation": { "x": -72722196.81157517, "y": 98198483.49850813 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "success", "success", "success", "success", "error" ], "autoRetry": true, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "a5bb969a6d01140db690ff38" ], "canvasVersion": 3, "_id": "86e37413-fa20-864f-3f24-39a84438264e", "uuid": "e582b264-0b8c-da9f-2a6e-4a19e16c26c0", "namespace": { "type": "project", "name": "elit non aliquip nisi", "accessControl": { "read": [ "non mollit", "cupidatat sed ullamco", "dolor anim occaecat veniam Duis", "Excepteur ea velit ex magna", "magna aliqua esse ex non" ], "write": [ "est in", "laboris reprehenderit in ut", "dolore est exercitation aute nostrud" ], "execute": [ "ut cupidatat elit ad dolor", "fugiat laboris", "fugiat enim commodo", "ut Excepteur non commodo do", "laborum do ipsum aliquip" ], "manage": [ "eiusmod mollit et in", "et laboris sit", "Duis id enim do velit", "Ut irure deserunt est Lorem", "minim commodo" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 5000, "sla": 1778354, "errorHandler": { "type": "elit enim proident sed", "name": "enim" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "dfde8c8113a7049f890ef860", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "428fcba30f96dd0bf58f12d3", "lastUpdatedVersion": "4.69.69", "tags": [ "dolore enim laboris voluptate consectetur", "consectetur ex nisi ut", "elit esse", "qui", "nostrud dolor nulla" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/TJgeeMYnzHX/hMtLS6VePa/~1" } ], "migrationVersion": 9722571 } }
{ "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": "Command Template Runner", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "611bf338f6a8a9d717ba3507", "181e9427fdf81c6d6157f538" ], "nodeLocation": { "x": 63891147.8763594, "y": 42609080.738172054 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "3170ba184f23049654c38235", "b4734739b2a87b7f606b29b5" ], "nodeLocation": { "x": -4504325.079246789, "y": 74425954.17416853 } }, "error_handler": { "name": "childJob", "summary": "ut exercitation id incididunt laborum", "description": "laboris amet eu", "app": "culpa sed", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/d,+6/~1/~1/~1/~1/O5o1Y6nzAmZ/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/vraI,/E,/Bx-BS3" }, { "type": "encryption", "pointer": "/~0/RBp9s/H/cZHHEa" }, { "type": "encryption", "pointer": "/~1/vMGKj/~1/T/~1/WdtuM7J/g/~1/~1/Ds8glE+0/~1/~1" }, { "type": "encryption", "pointer": "/rSqDBnt9Qw/X/xuQJ/~0" } ] }, "groups": [ "f6f04e344e9b4e9f57389ebe", "3e4f53cb7b25ce2870e2dee0", "399b3125f49b2bdbdee85ba4", "65b0cdf754c4769c157a56ec", "6b7a56fae1136a416d3afa82" ], "type": "operation", "nodeLocation": { "x": 83793844.3017438, "y": -50067170.553814575 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "0c329a6b9608f9289ae5fb27", "0a6a57d83beff40c85c04d2b", "fdb17265cb5cb98f4025306c", "45ac230f5f5530bf2c628ecc", "2bd3054ef62ccf57d70cb9bc" ], "canvasVersion": 3, "_id": "ebf174bc-cde6-3ba3-749f-8c942cfc3b2e", "uuid": "f83a7822-1ee1-19c7-e342-6fe621f6dba9", "namespace": { "type": "project", "name": "anim in", "accessControl": { "read": [ "aliqua", "dolor ipsum in", "esse ea dolore", "Ut", "irure" ], "write": [ "amet cillum incididunt consequat" ], "execute": [ "nulla eu cupidatat", "reprehenderit exercitation commodo", "reprehenderit pariatur officia minim amet" ], "manage": [ "esse sunt in", "quis nostrud", "id voluptate sint eiusmod" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 250000, "sla": 84261114, "errorHandler": { "type": "occaecat", "name": "dolore est ullamco magna ad" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "9171c662b56b42e1bcb9128f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "63be02179f40f5bae1b8d199", "lastUpdatedVersion": "4.69.69", "tags": [ "sunt sint officia in adipisicing", "proident ut", "veniam aliqua", "ad nostrud exercitation id ipsum", "aliquip elit incididunt aute nisi" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/akB26" }, { "type": "encryption", "pointer": "/~0/vWN/w-PcH/~1/dELaJ8je2Y/~0/~0/~1/~0" } ], "migrationVersion": 12341281 }, "edit": "minim est ut" }
{ "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" ] }