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": "Command Template Runner", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "6a02a5d3f56a9877f35009f0", "da662d99533a820dc75a308f", "751b8f6a7bf72232262266fc", "7b7fa45caacb7ca8cf9210bb", "2286997bb560e0fea035f938" ], "nodeLocation": { "x": 48711417.98099136, "y": -93431339.22628781 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "999ef0eb408c802828dee3a9", "146abc8bcb5f97d05f5d0715" ], "nodeLocation": { "x": 17158248.427637264, "y": 7677349.259770289 } }, "error_handler": { "name": "childJob", "summary": "irure esse minim nisi", "description": "id nulla consectetur est sit", "app": "do", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/I/~1/~0/uUxr" }, { "type": "encryption", "pointer": "/~0/p5SYGl,X/~1/V.RpxCaxX/~0/jI40Ip5/zjPC/~1/GJDxM/~1/~0" } ] }, "groups": [ "0361ae2d24f5990723863ecc", "bb3d3eef8d8100ec5a8dace9", "7eb98e4c26b81c7edb3f0c87", "9326c48724a01108b561d25e" ], "type": "operation", "nodeLocation": { "x": -98540280.52198265, "y": -86530044.39119992 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "460acafe7f5f91d9bf248867", "f57ab091e47f751fe25acacd", "b8796de4aac9922dfcf0a97c" ], "canvasVersion": 3, "_id": "5176ba2b-db51-4351-58e5-709635e8e426", "uuid": "5dae5648-34e4-4019-3859-bd61169303f6", "namespace": { "type": "project", "name": "sit anim irure ut", "accessControl": { "read": [ "elit cillum", "Ut nostrud sit", "proident aute velit", "enim incididunt velit" ], "write": [ "aliqua", "dolore in pariatur aliqua deserunt", "cillum labore", "nostrud", "voluptate qui magna elit" ], "execute": [ "ad do", "magna in adipisicing", "dolore eiusmod nisi occaecat", "esse", "nisi" ], "manage": [ "et officia anim", "cillum" ] } }, "description": null, "preAutomationTime": 250000, "sla": 37568997, "errorHandler": { "type": "et quis", "name": "reprehenderit enim culpa adipisicing ullamco" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "31f0b296a8405a6474c57114", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "7faa30b963b143fd17dd4add", "lastUpdatedVersion": "4.69.69", "tags": [ "exercitation do amet voluptate in", "officia dolor" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/W-Zkr5-LV/~1/PPEOF/~0/~0/Pp0e2sxeCp/~1" }, { "type": "encryption", "pointer": "/~0/~1/NLmgvdE0/ES.8jQVBH/HsJZP5/YixZQqSE/~0/~1" }, { "type": "encryption", "pointer": "/t7/limtdbih3/~1/~0" }, { "type": "encryption", "pointer": "/~1/Gr653Lg1JM/wPsw" } ], "migrationVersion": 88535750 } }
{ "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": "Push Config to Device", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "7a34cfc509f9a7732c39627a", "97720ba3776bbaefbdbf6351" ], "nodeLocation": { "x": 90970586.8351371, "y": -55110999.166116014 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "3f2c7c9445650f2912c0777b", "69bc9238d4a3a3f1f68333ae", "a2d41df02420aa9cb5dc3c25" ], "nodeLocation": { "x": -79200032.17624313, "y": 86928665.08365259 } }, "error_handler": { "name": "childJob", "summary": "in ut", "description": "labore non amet", "app": "dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/~0/zVLqcQ+9/B/fB66IPp/ttjXFE/JBt.a2udobF/rUtSaW7bmn/~0/a7QBn2l2Cqh" }, { "type": "encryption", "pointer": "/~0/w/~0/~0/OP1HYY/~0/j" } ] }, "groups": [ "e7824dd36f8b858df3ea0b79" ], "type": "operation", "nodeLocation": { "x": -39688094.87501419, "y": -60895882.84348677 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "c45461adaa875bae14c2a9c2", "4cc620fa0d71047f0b3999a6", "f5fea1f9cb7cbc15895601f1" ], "canvasVersion": 3, "_id": "1d33a38d-02b9-57e1-b350-8db423b72810", "uuid": "493a1393-dc50-8211-2ac5-8370c1c6129b", "namespace": { "type": "project", "name": "dolor cupidatat velit deserunt", "accessControl": { "read": [ "voluptate enim" ], "write": [ "cupidatat Ut voluptate ullamco", "nulla", "do dolore voluptate" ], "execute": [ "eu", "est esse eu", "in eu nostrud in", "sed nostrud" ], "manage": [ "cillum amet ut", "enim nostrud deserunt do", "Ut anim tempor est nostrud", "occaecat cillum cupidatat", "nulla quis elit est do" ] } }, "description": null, "preAutomationTime": 250000, "sla": 20168985, "errorHandler": { "type": "ea ut consectetur", "name": "incididunt dolore voluptate deserunt esse" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "fdcc2c017a3d26771db021f2", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "4056fd5596a5db0e6570992d", "lastUpdatedVersion": "4.69.69", "tags": [ "id proident et", "magna", "dolore consectetur in" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/IbYD1H/~1/keii22vGL/dgcc/c/~0/~0" }, { "type": "encryption", "pointer": "/Sb/LOX.k/~0/~0/~1/LF4hN/~0" }, { "type": "encryption", "pointer": "/B3gJHtE3oBJ/~0/gtAw7cW/~1/Ifpo/G1V4/R/WK9isjH5+/qrP4C/~1/hvdM" }, { "type": "encryption", "pointer": "/~1/V/~1/sV,/~1/Bk2/~1/Fv" } ], "migrationVersion": 88597735 }, "edit": "amet elit" }
{ "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" ] }