Summary
Replaces a workflow document.
Description
Replaces a workflow document.
Route
PUT /automation-studio/automations/:id
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | Workflow id. |
update | object | yes | Complete workflow definition to replace the existing workflow document with. |
{ "update": { "name": "Push Config to Device", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "691f3bd1681c850891f8f2b5" ], "nodeLocation": { "x": -68033245.77589445, "y": -37060212.32291881 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "8bbb8fa4c1a0e95f34a032e9", "e1bb6fd304f062234615d5fd", "faee6f1ce7daacc9838b2487", "4ce170b4978e3716a9e7c727", "7ce204a93a3f1d7ae34783f5" ], "nodeLocation": { "x": 86871463.70506501, "y": 32049883.553922415 } }, "error_handler": { "name": "childJob", "summary": "adipisicing", "description": "irure tempor quis", "app": "eiusmod Excepteur mollit in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/WAoocu/uEp0-1WeRTf/idEzVU7TjCv/~1/icMr2.-P/~1/~1/~0/qnUlEGpmMI5/oUlt5f/" }, { "type": "encryption", "pointer": "/~0/~1/C.5./~0/Gn3uw5gMir/yh/JvXXyuwV/~1" }, { "type": "encryption", "pointer": "/I6w/k/~0/vdLB/pzEUz,v69f//~1/~1/~0" } ] }, "groups": [ "9f8ed0c71b69f104a4a388fa" ], "type": "operation", "nodeLocation": { "x": -74770490.73734298, "y": 43837210.329175055 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "b8b456e6aed25afb52dd6c75", "266445aa4abf031e7e51bfdf", "e00dc1bf4c2bb806c448f387", "1df48be5149d368ac432c35f" ], "canvasVersion": 3, "_id": "fa75d604-81b7-dcaf-f380-b08b093f2999", "uuid": "d1dfead4-a5f1-5404-6e23-8ba8680db339", "namespace": { "type": "project", "name": "qui proident occaecat incididunt", "accessControl": { "read": [ "elit anim minim sunt" ], "write": [ "amet" ], "execute": [ "consectetur occaecat Ut", "elit ad", "ea commodo officia", "culpa nisi in magna", "occaecat Excepteur fugiat" ], "manage": [ "proident consequat", "laborum minim veniam velit" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 5000, "sla": 94004147, "errorHandler": { "type": "sunt cupidatat", "name": "Duis dolor" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "182c78c18119916934de371c", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "4dac7b1b172baa8acc21db78", "lastUpdatedVersion": "4.69.69", "tags": [ "laborum Duis commodo enim", "aliquip aliqua", "ullamco", "labore culpa dolore sed" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/Qi3VKjiVtBe/HXG/~0" } ], "migrationVersion": 72871794 } }
{ "type": "object", "properties": { "update": { "title": "update", "description": "Complete workflow definition to replace the existing workflow document with.", "$ref": "workflowDocument" } }, "required": [ "update" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
response | object | Response object. |
{ "updated": { "name": "Command Template Runner", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "c93fd12bd3ab3e5f392f0ece", "8c49176d572b0a3cc15333d6" ], "nodeLocation": { "x": -22295226.71125661, "y": -20572314.490759864 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a1b2801361eb7c8c842a987f", "89ed5fa11798711a66316e44", "0c8b5dc4cc3251d6a8b95398" ], "nodeLocation": { "x": -29531294.503201574, "y": 15259250.824307188 } }, "error_handler": { "name": "childJob", "summary": "nulla culpa Ut", "description": "culpa reprehenderit", "app": "tempor eiusmod do incididunt elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/Lw3pP1HtTs5/h22v1/W7U5X1x-3/Gs,/Zrr/otaAH/y7uHg/~1/~1" }, { "type": "encryption", "pointer": "/~0/P/Z/D/~1/FnK1/CgB-Og/HiNAk/~0/~0/~1/~0" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/f-M5xHd/cZ0/REdG/~1/~1/~1/isf87z/~0" }, { "type": "encryption", "pointer": "/XcDEwl/vzacs/ztFvzsdV5GL/~1/jKfFfz3qG/L4A" } ] }, "groups": [ "d592604f0076e5bd5a39638b" ], "type": "operation", "nodeLocation": { "x": -35865396.16260076, "y": -52307947.482610606 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "error", "success", "success" ], "autoRetry": false, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "cfc526601a540a3c36bc36b5", "0142df8f07ee055118812d78", "c409f4310bcd6953b90228d2" ], "canvasVersion": 3, "_id": "c94df459-1c76-587d-f3cd-42bc7d0871cf", "uuid": "dd648f54-2587-033a-00b7-700085bed2fd", "namespace": { "type": "project", "name": "et in dolore labore", "accessControl": { "read": [ "enim incididunt dolor ea adipisicing", "anim enim aliquip" ], "write": [ "aliqua", "ut", "laboris", "exercitation magna ut", "pariatur" ], "execute": [ "magna aute sit id laborum", "ut Ut minim dolor aute", "consequat enim", "commodo id", "amet" ], "manage": [ "sit et", "sit quis sunt ipsum", "dolor incididunt commodo tempor", "sint officia" ] } }, "description": null, "preAutomationTime": 250000, "sla": -99469485, "errorHandler": { "type": "est", "name": "magna eiusmod anim eu" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "f214b703f3307ff3c7846e88", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "874f18b65e126ddc9b4f68bd", "lastUpdatedVersion": "4.69.69", "tags": [ "Duis", "in ut in", "eiusmod dolor Excepteur", "ea nisi", "ad dolore officia reprehenderit" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/aO+o./x4u2Jl/F2ThkoTFB/uo4q19rc9/l4tAYm+gb/XRu3B,4b8/L/~1/SHk5/ThWo8/~0/~1" }, { "type": "encryption", "pointer": "/sp4OvA+jQXR/~1/~0/LCfG3RXy5//~1/~1" }, { "type": "encryption", "pointer": "/s/~0/Yp/gkXlt7419,O/aYvZlxbmvc/~1/~0/~1" } ], "migrationVersion": 29591147 }, "edit": "sed minim dolore eu consectetur" }
{ "title": "response", "type": "object", "properties": { "updated": { "description": "Workflow document after applying the update.", "$ref": "workflowDocument" }, "edit": { "type": "string", "description": "URI to the edit page for the updated workflow." } }, "required": [ "updated", "edit" ] }