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": [ "e3394d5f06ea0cf15b30a580", "dc3245888232c82d1eafb2bb", "3b3c45619b005e3829ebabd1" ], "nodeLocation": { "x": -15950340.471183375, "y": -28829468.88874814 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "92d6d0709d9d3c002c05bcba", "67bf24e2303ddae7aea1c2ae", "f4beca6139008a18112104b2", "7d13a92489ad1ecd8b8d8610", "06f4400aff7da348c4ffef07" ], "nodeLocation": { "x": 76260835.90492296, "y": 95151649.16193575 } }, "error_handler": { "name": "childJob", "summary": "adipisicing minim laborum", "description": "Excepteur", "app": "ad sed qui dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/NY39jDw/VZTzLTe9U/~0/~1/~1" }, { "type": "encryption", "pointer": "/~0/zbNBiwvat/~1/h4ZnC-toexL/~1/Q/Uq2x-X.o2,./f/xd,Xv+ijQ-C/~0" }, { "type": "encryption", "pointer": "/nLCKMQ.kdyU/f/~1/~1/~1/aupTBUE/~0/~0/~0" } ] }, "groups": [ "afbdddec37c80e7acc960335", "97761b1b1a5246a9f455ab1c", "39d1bab7697d6a329223432e", "6fb2ee5b7bddecca65e5272c" ], "type": "operation", "nodeLocation": { "x": -94575489.61140287, "y": 46387597.19372073 }, "deprecated": false, "scheduled": true, "retrySettings": { "state": [ "failure", "failure" ], "autoRetry": true, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "0c400cfc7b323cc939a4789d", "65b3e0d59be458e5be966a56", "66aa77370346894b19958fac", "4b97553e98757a63a2628529" ], "canvasVersion": 3, "_id": "7aa0bad8-fbc4-e275-bb10-69dca7b58a3f", "uuid": "372ce50b-f62d-78d8-b278-b0d15fb64274", "namespace": { "type": "project", "name": "anim", "accessControl": { "read": [ "non est magna labore", "irure", "mollit cillum dolor" ], "write": [ "ea cupidatat amet nulla ullamco" ], "execute": [ "cupidatat reprehenderit minim", "Excepteur", "non" ], "manage": [ "laboris sed", "exercitation cupidatat non" ] } }, "description": null, "preAutomationTime": 250000, "sla": 26471675, "errorHandler": { "type": "amet Duis sunt elit", "name": "ut" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "842eb6d62e0960c20eded426", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "de0e85f8d0da8ec86165ad67", "lastUpdatedVersion": "4.69.69", "tags": [ "mollit ullamco incididunt pariatur", "laboris sunt", "deserunt anim ad irure eiusmod" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/sY/~1/v71R0oCJ43d/~0/E+p" } ], "migrationVersion": 38038797 } }
{ "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": [ "2d4e7389dc90d811738f3b8c", "b5c4d67ceb56867ad7631502" ], "nodeLocation": { "x": 86180901.55571213, "y": -24209740.249439 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "84ba956c19c0e72b93b0fb1f", "835aafe348d47807a1665e62", "0603ca033eda28d6ec986aca" ], "nodeLocation": { "x": 23949929.360144213, "y": 74733521.96852049 } }, "error_handler": { "name": "childJob", "summary": "est", "description": "labore velit occaecat", "app": "enim dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/PB/LA/Ev5L5L2uFMK/~0/p4GQ/~0" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ "4a57746e566fa48e24954b9b" ], "type": "operation", "nodeLocation": { "x": 28141318.846576452, "y": 20112144.25892915 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "f58db09655fa800ec4966e82", "edbb54e6e5b9230b632a635a", "10180d5b964d1a61c4093014" ], "canvasVersion": 3, "_id": "79be1d12-adf0-a392-479f-d0207e5fae93", "uuid": "e08ad090-fca0-2601-6f63-c7de75cd0efa", "namespace": { "type": "project", "name": "reprehenderit", "accessControl": { "read": [ "in Lorem consectetur mollit deserunt", "deserunt Excepteur officia", "culpa", "sit", "velit occaecat quis minim in" ], "write": [ "culpa aliquip esse Lorem", "laborum dolore", "in officia exercitation", "quis proident sint" ], "execute": [ "officia nisi nostrud" ], "manage": [ "dolore ex amet ut", "nulla dolore pariatur in dolor", "cupidatat" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 250000, "sla": -81481755, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "34251057011e5857f76a133a", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "a505f0f9dcc60d43632df921", "lastUpdatedVersion": "4.69.69", "tags": [ "tempor anim nulla exercitation", "ex non", "nulla veniam", "nisi ad tempor eu" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/h/Kt+/P2-/~0/~1/ihqVm+/anE,/YY/~1/~1/~0" } ], "migrationVersion": 94016708 }, "edit": "in ad minim voluptate anim" }
{ "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" ] }