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": [ "cdd88a9c0dcece20ad5964e6", "71b636f902fd90e5127ba035" ], "nodeLocation": { "x": -2968911.0456314236, "y": -8439348.991423354 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "baaf57ee00a605f284e19918", "aef4b3177d38209e7f8a48a9" ], "nodeLocation": { "x": -97446746.9108014, "y": -98643522.20621662 } }, "error_handler": { "name": "childJob", "summary": "pariatur", "description": "exercitation deserunt pariatur", "app": "deserunt cillum quis officia pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/mmBx/R6u/S.Ur9OO/dJtOB./~0/Ne9eIc.O/~0/~1" }, { "type": "encryption", "pointer": "/RZ/~1/~1/eNq/~0" }, { "type": "encryption", "pointer": "/~0/shJDms25-V/Sx/MtRc2f/gVFNTY,/Q,HHY+B3/WgaNfVuG9Ig" }, { "type": "encryption", "pointer": "/~0/~0/O1PJr./~0/~1/KuyTc-8A.f/~0/QYbXrmmb/~1/~1" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ "6277eb17fb529ce1f7da63a2", "db6bf6b7053d1d2f9449c836", "f6e72584c7211d006fac08ad" ], "type": "operation", "nodeLocation": { "x": 15447382.779360995, "y": 13679883.659929663 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "6e03fdd8f390d40e13adad6e" ], "canvasVersion": 3, "_id": "58877bb7-70eb-3362-979b-e9a23bdcb388", "uuid": "170f55ff-a44e-1ed3-1597-c7431dac22fc", "namespace": { "type": "project", "name": "ipsum ad deserunt amet", "accessControl": { "read": [ "laboris non cupidatat officia irure", "fugiat" ], "write": [ "velit dolor" ], "execute": [ "quis ipsum", "deserunt nulla ullamco", "reprehenderit veniam nisi", "commodo", "nisi mollit exercitation aute dolor" ], "manage": [ "aute", "aute", "velit proident ut exercitation" ] } }, "description": "Push Config to Device", "preAutomationTime": 5000, "sla": 48288933, "errorHandler": { "type": "voluptate aute cupidatat anim", "name": "commodo in sed sit" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "a5cd8ee104f260f3a245e95b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "4a5fcfef4d23a4217d1d5acd", "lastUpdatedVersion": "4.69.69", "tags": [ "irure", "Ut tempor dolore" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/fR/VBwTuY2E" }, { "type": "encryption", "pointer": "/mzrIQ//~0/~1/W6xVT9x" } ], "migrationVersion": 92540638 } }
{ "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": [ "6892d121131047878cf5e587", "3c48d1cdfd516667c4bed853", "9bab90a4564617e8edd08eca" ], "nodeLocation": { "x": 79756119.20856145, "y": 64118527.53803259 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "72dd9a3b238e25cb118df69f", "a1a20e2db11c05af2dcf6d4a", "044d2977a4af7dcbb5e585f3", "4fb3186fe754407a7b82a019" ], "nodeLocation": { "x": 72115760.8477144, "y": 28259724.55841832 } }, "error_handler": { "name": "childJob", "summary": "occaecat ea", "description": "laboris", "app": "eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Un/f/i4UvxIO-/xJao/~1" }, { "type": "encryption", "pointer": "/hUTA/~0" } ] }, "groups": [ "99b03ec644886a319b10b293", "4388bfd3472fc81bb4d9d1ca", "2c4cc6a023c1887c8bd88578", "ff8f2045586216b4102ca30f" ], "type": "operation", "nodeLocation": { "x": 66246267.71068022, "y": -68307313.1149019 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "c01f23f0d50b78c48061356c", "7b378d59c7ab84ab22bca410", "0e8ec91abe26787e4104feea", "0f5b8b6c660b9712400a9f0e", "c07d5d40a8702eb1208ec248" ], "canvasVersion": 3, "_id": "e2466fac-54b1-9bbf-fb8e-c7e0504f236c", "uuid": "cdbf0bbc-5d72-ded0-5b38-8b3cf4aa708a", "namespace": { "type": "project", "name": "ea pariatur consequat ipsum", "accessControl": { "read": [ "velit ex", "ut ad", "aute eu aliqua amet nostrud", "elit exercitation incididunt reprehenderit" ], "write": [ "nostrud minim exercitation ipsum Ut" ], "execute": [ "sit nulla et", "veniam ullamco", "ut mollit est" ], "manage": [ "tempor aliqua", "voluptate ut consectetur ipsum", "aliqua dolor irure consectetur ut", "adipisicing", "reprehenderit adipisicing ipsum officia aliquip" ] } }, "description": "Push Config to Device", "preAutomationTime": 5000, "sla": 30241039, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "d7c8e4d5ca42a19811e19629", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "1df020f9e988094e9078202a", "lastUpdatedVersion": "4.69.69", "tags": [ "nostrud aliqua quis ea", "qui cupidatat ullamco Ut ut" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/rPJ-M/~0" }, { "type": "encryption", "pointer": "/Z/E-0n8Pbgo/~1/kj2diszkfUQ/gWxYJ/Wiha.fF5w/YIHkt/mz4.5/~0/l/AuD9h3MaOF" }, { "type": "encryption", "pointer": "/Mye/nmKhy2Z/~0/~1/EBpVsiVaCQ4/rcap2fyOv./~0/~0" }, { "type": "encryption", "pointer": "/~1/~1/L1omvAsU/qRV,Plfwj/Fxo6E/~1" }, { "type": "encryption", "pointer": "/~1/YJ/I,kO/~1/U/up/~0/~0/~1/Adu" } ], "migrationVersion": 67162298 }, "edit": "esse deserunt 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" ] }