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": [ "113edd6cfb68b5dd61350082", "e78411133b323129dfa4e2de", "156547c947abeda71f890676" ], "nodeLocation": { "x": 90060296.06549099, "y": -27318246.097691998 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4c18e8b721b33ef5221c6b73" ], "nodeLocation": { "x": -11971024.236896664, "y": -14138046.593730897 } }, "error_handler": { "name": "childJob", "summary": "incididunt dolor", "description": "officia exercitation", "app": "nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/VHuM22/x7e-wlpAT6," }, { "type": "encryption", "pointer": "/USvH7K3fVk/~0/~1/~1/ZuaTk+5un/oa6J44p" } ] }, "groups": [ "7e8d33201382c55846f99b93", "8a9c065d4221d4ce6c6fb25e" ], "type": "operation", "nodeLocation": { "x": 33698315.45096958, "y": 4251930.823931277 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "791929b9c8d36361f0f9afd9", "f095b6929fd6985a2a6eca60", "402c07caab6fcc16fb6435d9", "8f72f12552d0b7650a235ed0" ], "canvasVersion": 3, "_id": "11bc62ec-b4ae-1575-2921-169302c7a286", "uuid": "c5ad2eb9-9d53-6891-b824-0de5ee016c7a", "namespace": { "type": "project", "name": "non reprehenderit commodo cupidatat", "accessControl": { "read": [ "quis mollit consectetur ullamco dolore", "occaecat Duis commodo", "ut adipisicing cillum ullamco aliquip", "cillum" ], "write": [ "reprehenderit consequat cupidatat veniam" ], "execute": [ "irure sint incididunt labore veniam", "quis tempor irure aute", "cupidatat do Duis", "enim aute esse ex commodo" ], "manage": [ "in", "adipisicing", "laboris nulla", "ut Lorem tempor esse consectetur", "sint ex sed" ] } }, "description": null, "preAutomationTime": 250000, "sla": -72635716, "errorHandler": { "type": "aute", "name": "cillum ut nulla" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "fd7457cd7bd0582fec81523a", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "a8bc3aa8fab04cbe1ff1fa3e", "lastUpdatedVersion": "4.69.69", "tags": [ "pariatur dolore", "ut laborum aute", "qui ea" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/Be" }, { "type": "encryption", "pointer": "/R6gT0rK3iq/~0/~0/JlVSnLKO/~1/UQl/HOoW,+/pf/~0" }, { "type": "encryption", "pointer": "/RR1QR32H0t/~1/~0/sLNl" }, { "type": "encryption", "pointer": "/~1/~0/~1/JAFjj++KLCx/JzFFEH,QmcD/H+jn5TSqEzS/~1/HB/4200/~0/pwKlNAagc/AXTl" }, { "type": "encryption", "pointer": "/~1/cjgFPiD.TZ/~0/Ge0A63j/~1/v/~1" } ], "migrationVersion": 25294773 } }
{ "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": [ "bba37e9b36bf1874b7b5c694", "6074cd03ddecbfd6ecd0793a" ], "nodeLocation": { "x": 36776033.61851823, "y": -54566462.184200495 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "fa1d362ebd270a960a798658", "564d8d1ee3eecfae984bab41" ], "nodeLocation": { "x": -1004610.2976213396, "y": 34115292.784508884 } }, "error_handler": { "name": "childJob", "summary": "dolore eu ad et adipisicing", "description": "in nulla", "app": "magna in exercitation", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ywe+/~0/J2jS/~0/H" }, { "type": "encryption", "pointer": "/~0/k/~0/W26zguXSm,o/H+S.,O7/~1/GU4IeD/~1/~1" } ] }, "groups": [ "5ff70eaa979358982b461e66", "cf42db796dad02304c4f34f5", "68914c664cb4f41af84ef2f3" ], "type": "operation", "nodeLocation": { "x": 48439928.9159407, "y": -16189554.366082564 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "374be6b4bcc55c4f983af263", "27be6d4918138203b20822fc", "c754aa6d435e43a0cd1c4dda" ], "canvasVersion": 3, "_id": "0db32a30-cfd9-272c-6c90-c11eed028e54", "uuid": "9b684567-5181-1b71-b063-937884287422", "namespace": { "type": "project", "name": "veniam occaecat", "accessControl": { "read": [ "ea cillum" ], "write": [ "ut do irure", "nisi et labore", "aute quis eiusmod", "aliquip aute cupidatat ad nisi" ], "execute": [ "elit nisi ut ex", "Ut" ], "manage": [ "laboris veniam deserunt", "sint et", "non cillum qui ipsum", "consequat", "amet laborum quis cupidatat" ] } }, "description": null, "preAutomationTime": 5000, "sla": 54822900, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "aa69caf043927b3ab4f98937", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "204b02ca3b1c19ff1b6be089", "lastUpdatedVersion": "4.69.69", "tags": [ "fugiat culpa aute occaecat", "deserunt ut anim esse eiusmod" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/PaLQW823/bXK9ZzOy/~0" }, { "type": "encryption", "pointer": "/m7,Tatts1u/m/~1/TwbAQ0Va8K2" }, { "type": "encryption", "pointer": "/U750yJ4C/YlGL/lVXpcnWFx/zeyUJq3rR/~0/~0" }, { "type": "encryption", "pointer": "/~1/~1/~0/j/~1/~0" }, { "type": "encryption", "pointer": "/~1/~0/c16InI3/TLVio/~1/J/N7/LKu3wHCk.eo/~0/C7LPZdzXYJJ/~0" } ], "migrationVersion": 15498864 }, "edit": "amet sint" }
{ "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" ] }