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": [ "3f0c16ff3a197f14aaa4e476", "65355ccfe590fe4627b1ee60", "d169d61983c3d58dfbd4a083", "c0a568befef72b92acdd7cde", "ab9be30719b2af10b0aa75ac" ], "nodeLocation": { "x": 25099127.42385319, "y": -53432148.22245788 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4e4568fa5493492e7fe40f4e", "41dfb54b8baf868d00f2e29c", "bb25725da4b7f6e5ffb6f655", "0bb073398834f1257dd9c485" ], "nodeLocation": { "x": -64098948.2056844, "y": 14379251.275557518 } }, "error_handler": { "name": "childJob", "summary": "ipsum esse ut fugiat veniam", "description": "pariatur et ad laborum", "app": "fugiat proident", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/Lfk7E/~1/Uy3CymRHN5U/~0/~1" } ] }, "groups": [ "42096b3038c5a0ebdb8a29aa" ], "type": "operation", "nodeLocation": { "x": -53243699.314346716, "y": -57247864.27898065 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "f6b4decc7127135d07a20808", "109fd3b27576c007fca03407" ], "canvasVersion": 3, "_id": "9d16aa1d-a42c-b299-f157-02549d1fecab", "uuid": "075572db-a255-9603-340d-b652bcd1acb9", "namespace": { "type": "project", "name": "laboris", "accessControl": { "read": [ "do eu", "occaecat nisi in voluptate ipsum", "minim deserunt", "do amet mollit reprehenderit" ], "write": [ "sint nostrud", "ipsum", "non consectetur laborum veniam" ], "execute": [ "nostrud fugiat", "est", "eiusmod dolor dolor" ], "manage": [ "dolore consectetur adipisicing Ut reprehenderit" ] } }, "description": null, "preAutomationTime": 250000, "sla": -44300649, "errorHandler": { "type": "veniam ut", "name": "Ut mollit et exercitation aliquip" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "11ffe0bd45adf0381ad3b4f5", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "aa50c7fd27ae7de0260bb5d4", "lastUpdatedVersion": "4.69.69", "tags": [ "Ut", "velit ut laboris" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/fkoint-/~0/~1/~1/~1/V/~1/qIK/~1/~0" } ], "migrationVersion": 70223443 } }
{ "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": [ "d8bc3b67b3d2a33a52e2c6ad", "d463b37a31b1c2a6f28491f6" ], "nodeLocation": { "x": -97980480.58088318, "y": -77983439.7553782 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "98ff9108251c1541e426c80e" ], "nodeLocation": { "x": 6515235.3380379975, "y": 44224690.96112275 } }, "error_handler": { "name": "childJob", "summary": "ipsum in", "description": "irure elit in velit", "app": "sint veniam deserunt nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KOJ-zkn/WG-k8/wUgHKFu/Yf/b/~1/~0/dn/~0" }, { "type": "encryption", "pointer": "/B01" }, { "type": "encryption", "pointer": "/~1/M-Z/kia/~1/~0/WWfXdI7M0c/~0/cXZE/~1/~0/~0" }, { "type": "encryption", "pointer": "/CNrt24,RQj" } ] }, "groups": [ "8c328378d64d5bdde172c5f3", "3d1fdd7aab928d4366cbc009", "8e145629fc9e76a51d28528c" ], "type": "operation", "nodeLocation": { "x": -30801731.380111262, "y": 5719073.845477581 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "231d2b0d442746ce8f88c2e5", "05a062e0cfa436f3339671b6", "c9b2768eae5a0c1da2880b62", "cd36e6bab37e7436123b7e5f" ], "canvasVersion": 3, "_id": "448c2b59-908f-6ac5-57c7-725518801ae2", "uuid": "32c9de91-77fa-5483-6da6-728b7fc2e12d", "namespace": { "type": "project", "name": "ex ut pariatur ut", "accessControl": { "read": [ "nulla", "incididunt", "fugiat", "sint ea ipsum reprehenderit" ], "write": [ "reprehenderit quis ea occaecat", "occaecat Duis sint id nisi" ], "execute": [ "fugiat reprehenderit dolore", "aliquip", "ut ullamco consectetur et", "ullamco", "magna laboris" ], "manage": [ "do voluptate Lorem pariatur" ] } }, "description": null, "preAutomationTime": 5000, "sla": -32705915, "errorHandler": { "type": "consectetur eu", "name": "incididunt laborum enim dolore" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "50664fdeb82cbd3a4e45944f", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "5bc9a87b8e7f8c7597966809", "lastUpdatedVersion": "4.69.69", "tags": [ "labore non incididunt nulla", "et minim Ut deserunt", "incididunt qui esse", "nostrud qui" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/NNZC-6arik,/~1/~1/~0" } ], "migrationVersion": 77753026 }, "edit": "veniam aute" }
{ "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" ] }