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": [ "b671a6192a0828eca7cb146c", "c44ea1b77907f6a8fabc1d4e" ], "nodeLocation": { "x": 39523678.70367044, "y": -62680624.79747582 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "b6de0fcecb48bb338b9b0183", "e2a5ff197efe2d2115364624", "8d4e2795a9cb10fad9fcc666", "0e42da6de107ad73341f4c97", "bd1ca6adc7013edb4ee55e45" ], "nodeLocation": { "x": -66701428.891817205, "y": -90076257.44781075 } }, "error_handler": { "name": "childJob", "summary": "officia", "description": "aliqua dolor exercitation ex cupidatat", "app": "voluptate Excepteur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/M.k9L/MLBeNT/R0-xH/qibrxVxfqdm/~1/OITF/~1/~0/j5sys5JIkM" }, { "type": "encryption", "pointer": "/Pja/WuuXFtT" }, { "type": "encryption", "pointer": "/ba/OSNlpSL/GJ0Z/~0/iIQtO9A/hOz/BH9i./~0" } ] }, "groups": [ "92602f16a60a364d328ac061", "7e8f3247933962e9c04f092a", "28e585f87872c15f32d15860" ], "type": "operation", "nodeLocation": { "x": 32509804.171912298, "y": 10230615.252314255 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "8af9cb9883f3b04f21ea26dc", "1e8de77bba88557b5aa1fa4e", "7e0feaeeb5c92f9eb3d1429b", "83b104e52500e95c668307a8" ], "canvasVersion": 3, "_id": "45189d48-2188-da13-603e-a3e904152992", "uuid": "d16c6519-4199-ec97-05b3-3515ba09c992", "namespace": { "type": "project", "name": "quis ut aute ullamco enim", "accessControl": { "read": [ "amet enim velit" ], "write": [ "sint tempor ut esse", "amet ut in", "ad dolor ut" ], "execute": [ "eu qui laboris sed Lorem", "tempor incididunt deserunt" ], "manage": [ "in ad proident deserunt incididunt", "aliquip incididunt aliqua non", "cillum occaecat sint amet dolor", "ex in laborum dolor Duis" ] } }, "description": null, "preAutomationTime": 250000, "sla": -64207499, "errorHandler": { "type": "Duis consequat fugiat deserunt sint", "name": "ullamco consequat proident" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "910e54eeec491b870183c4ae", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "8a5156c52e951777c425027e", "lastUpdatedVersion": "4.69.69", "tags": [ "labore et enim dolor", "aliqua consectetur", "eiusmod cupidatat" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/DrFmAlKtx/~1/FGO/~1/~1/~0/Shd+fev1-jH" } ], "migrationVersion": 66868115 } }
{ "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": "Port Turn Up IOS", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "9d050a9b7fe8f3cd40f64b64", "2691ff1fdfab6de3f4e5bc0c" ], "nodeLocation": { "x": -30495180.713551223, "y": 17058315.900236294 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "71d20b61185349006efe2aa9", "8e5b1479c873134918fa85ac", "f08e8aee88c316b996409384", "e25e8608b011b9c75396d86e" ], "nodeLocation": { "x": -99682695.68111232, "y": 56650367.75280893 } }, "error_handler": { "name": "childJob", "summary": "enim officia", "description": "sunt dolore tempor nisi", "app": "elit sed", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/b.q3QEq+z/vnL6mM42/~1" }, { "type": "encryption", "pointer": "/KE9-,nECcy/~0/Ex1/~0/lo/a0ZJ/Xh6wu/~1/HeNcbVTUqO/~1/b-XHqamCvt/x1HFWbfZ/" }, { "type": "encryption", "pointer": "/TT6" } ] }, "groups": [ "1853944f4b82df9b1be23b4e", "1ba9212ad6e2a1bb90433fda", "520985c122fc32595dbec16a", "430c9122b454b4680a2fb89e", "8c5ef14d24eb15fe5c2955d7" ], "type": "operation", "nodeLocation": { "x": 53900534.89393848, "y": 88026226.80237907 }, "deprecated": false, "scheduled": true, "retrySettings": { "state": [ "failure", "success", "error", "success" ], "autoRetry": true, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "7b1419131c19fc26f6a6c5d1", "a8ee2fa525df84d35a14d3ed", "b72a94ea33a778decbd89f0b", "aa6d9e94e178935a32f08f15", "fde98adc4a6cbe7efc6b5a32" ], "canvasVersion": 3, "_id": "820b7c11-678b-2ea3-9753-9be44da20617", "uuid": "9013a718-fab1-ce51-07e5-8692705336b4", "namespace": { "type": "project", "name": "dolore", "accessControl": { "read": [ "eiusmod sunt eu", "quis" ], "write": [ "laborum in enim Lorem", "ut" ], "execute": [ "quis sit enim reprehenderit", "sint culpa dolore pariatur magna", "ad minim", "eiusmod pariatur cillum adipisicing consectetur" ], "manage": [ "Ut id fugiat ea cupidatat", "deserunt", "consequat sed" ] } }, "description": null, "preAutomationTime": 5000, "sla": -75912604, "errorHandler": { "type": "non aute magna Excepteur", "name": "consectetur" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "7f18a8e784753875eb776b04", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "3e2b3ea16ec6fd08a831351f", "lastUpdatedVersion": "4.69.69", "tags": [ "eu dolore", "deserunt id", "proident esse fugiat commodo" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/PXp/~1/~1/tENP9G/~0/PAR/sUkx0oBogF" } ], "migrationVersion": 52927004 }, "edit": "quis" }
{ "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" ] }