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": [ "70d6c8e552bb6cbe8287b110" ], "nodeLocation": { "x": -33632571.50428054, "y": 58459286.20045063 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "bc831d68fa8b600898170b33", "7ea9f930deb594a3c9fbf473", "f0bd53370b1b4e6831381eba", "7a54f50133449fca2f0c9338", "91415540e88e502a2278db4c" ], "nodeLocation": { "x": 37428546.09093708, "y": -80422649.8506448 } }, "error_handler": { "name": "childJob", "summary": "velit sint quis exercitation", "description": "esse", "app": "qui", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/vTjU9zu6bCl/UD/N/~1/~0" }, { "type": "encryption", "pointer": "/RMhMw+mOCLW/jar9/c7/p.avt507/~1/~0/~0/~0/~1" }, { "type": "encryption", "pointer": "/~1/~0/hVuxv4/nW2L/~1/vDSP/~1/Y6" } ] }, "groups": [ "3ec89644db830a7412823510", "6da5a9522c37e2921d364b3f", "22ba58f7f00bb0d6ef8e412a", "4d028565a8aae8c451e27dd1" ], "type": "operation", "nodeLocation": { "x": 95870658.98057148, "y": -80011185.36487062 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "0a7d4848d0e7799d3c4c697a", "cd34ba07d04e62587c296f3f", "7ec67cebb08db1171d68e734", "4d1ff27c65b65b59f0bf8ece", "74092f39991c24553917d8ca" ], "canvasVersion": 3, "_id": "8964ee76-c928-7d49-428e-9e78821e4948", "uuid": "58ab2f23-822d-7999-feb5-9eed05203081", "namespace": { "type": "project", "name": "velit in", "accessControl": { "read": [ "nostrud qui eiusmod", "aute Duis pariatur dolor", "tempor anim fugiat in", "aliquip amet nulla proident" ], "write": [ "consequat" ], "execute": [ "exercitation adipisicing do", "irure in" ], "manage": [ "fugiat nostrud Duis reprehenderit", "Ut Lorem eiusmod consectetur", "mollit dolore", "aute", "laboris nostrud" ] } }, "description": "Port Turn Up IOS", "preAutomationTime": 5000, "sla": -86498945, "errorHandler": { "type": "reprehenderit aute dolor amet sed", "name": "in est do" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "c06f884167eda4b1f6ff434d", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "05642941c75f1aed49d0282b", "lastUpdatedVersion": "4.69.69", "tags": [ "fugiat nisi", "aliquip dolore amet in enim", "minim" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/p8VY7/B" }, { "type": "encryption", "pointer": "/kJ/~1/~0/~0/~0/YnTmsdxHP,/jlF-AZ/~0" } ], "migrationVersion": 99694899 } }
{ "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": [ "8f78754ee6ce9bb1bee01ebf", "3cb8a9f4181cb3781cfd2024" ], "nodeLocation": { "x": 84213539.75863767, "y": -66589754.2895741 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "e3365e451d7bf2092de8200c", "9778c0ee26e599073f12c59c", "c3105d6bdd63cc20ea1179ea", "774044ad9dfaf8d6b8e881c5", "14a67a11fdc00d7c37a41e38" ], "nodeLocation": { "x": -15400897.38044177, "y": 62904438.60924834 } }, "error_handler": { "name": "childJob", "summary": "dolor ut ipsum", "description": "sit", "app": "ullamco", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/epyyS/MHpZO/~0/~0/~0/~1/Qs/AV1S6KA.o" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ "d0c1ca418f44dc25d3edda73", "78f25227c532b6f752778c47" ], "type": "operation", "nodeLocation": { "x": -34963309.85625482, "y": 1651736.8147206903 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "error", "failure", "failure" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "ef67c2ba198a6003f27394d4" ], "canvasVersion": 3, "_id": "3fd6d5ec-6ec7-b202-273a-bf536848220e", "uuid": "27953fbd-8cb1-cd74-5916-f2c31609afd2", "namespace": { "type": "project", "name": "incididunt laboris Duis", "accessControl": { "read": [ "fugiat do", "sint est elit" ], "write": [ "laboris" ], "execute": [ "eiusmod in in cillum", "veniam dolor qui aliquip aute", "Excepteur sint dolore mollit laboris", "velit tempor dolor eu", "dolore consectetur" ], "manage": [ "incididunt exercitation dolor", "amet laborum nisi" ] } }, "description": null, "preAutomationTime": 5000, "sla": -94494899, "errorHandler": { "type": "nulla aliqua do", "name": "eiusmod" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "148dd34b2ef16dabc7287459", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "dd016d7a1686d0af79d61b31", "lastUpdatedVersion": "4.69.69", "tags": [ "nisi consectetur irure ut" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/GNPj/~1" } ], "migrationVersion": 60779163 }, "edit": "consequat laborum enim dolor" }
{ "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" ] }