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": [ "6845c473338e81fef966e73c", "864434a8adc744a96d0a2d9d", "7c20c4773beaa755adc07005", "381d5de7dd14ac6d580e52aa" ], "nodeLocation": { "x": -64686804.2348256, "y": -59769162.767123826 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "da31078b09e4330edf475d08", "256253213884d7300acdfab6" ], "nodeLocation": { "x": -59443768.978212975, "y": 74985303.0817973 } }, "error_handler": { "name": "childJob", "summary": "in laborum", "description": "irure minim sit dolor", "app": "ad minim in consequat Ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/vR2whYNLwJm/~0/~1/~0/~1/pMO/TQSdaI" }, { "type": "encryption", "pointer": "/C/~0/mzT+h,FO+Xd/b7-/RIt//Fch/V9C/B3nVAzfx/GvhAQdBsP/~0" } ] }, "groups": [ "bb5d465da03ea05fa2877278", "7d90cef58d5bc9846dbf0228", "410c05e852fdcb11f822bb75" ], "type": "operation", "nodeLocation": { "x": -67395974.04334229, "y": 74517159.5201999 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "2cd3066199fa70e9ba59f580" ], "canvasVersion": 3, "_id": "88ad0702-9fd4-a4eb-8e01-4ba3dd73cb7f", "uuid": "e2000b9f-9c5d-2e36-59a8-be4348b0ce83", "namespace": { "type": "project", "name": "nisi veniam laborum minim non", "accessControl": { "read": [ "aliquip eu elit pariatur", "ut aliqua velit culpa", "irure mollit do pariatur", "incididunt" ], "write": [ "cupidatat commodo", "pariatur", "do pariatur" ], "execute": [ "ut sit et magna", "dolor", "ut in labore nisi", "Excepteur" ], "manage": [ "officia", "nisi culpa", "pariatur" ] } }, "description": null, "preAutomationTime": 250000, "sla": 39342850, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "e20ddb4ac3d063827f7a8052", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "43d0dc14a78a05e62ed244b1", "lastUpdatedVersion": "4.69.69", "tags": [ "aliquip esse consectetur" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ME+M" }, { "type": "encryption", "pointer": "/~0/CfwcwUhFIj-/ut8B3/b/~0/i/m9h7tyN/~0/Tn5T3D/~0/~1/~0" } ], "migrationVersion": 90624597 } }
{ "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": [ "db98892e5667e07fabf66ddc", "601963f2cee402967b6b4df5", "e94a59ea99cdfd21ca34c349", "6cf483ad1d0c779f00b708a5", "c2237a3d2fddeea78d2a5957" ], "nodeLocation": { "x": 25374486.07230246, "y": 5883619.5294070095 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "526931e975ef70d3382734e0", "4fad44adcfeb39e128b2b79a" ], "nodeLocation": { "x": 48056699.61147383, "y": -97118594.08943693 } }, "error_handler": { "name": "childJob", "summary": "pariatur quis anim", "description": "aliqua labore", "app": "dolore sint", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/mN,YiBKw/Yslb/~0" }, { "type": "encryption", "pointer": "/K50SRV/~1/uOmPJx/~0/~0/~0/~0/~1/EvxY35EyAH/~1/drfD7Ftg4j" }, { "type": "encryption", "pointer": "/~0/gUIpXD/HFz" }, { "type": "encryption", "pointer": "/M8SuRv3frk/ExGH/~1" }, { "type": "encryption", "pointer": "/I1yqWiU/~0/~1/~0/~1/~1/UVxgq/hmx68gG+eFv/~0/~1/d" } ] }, "groups": [ "9476c6a52e70757e3d48f118", "e51206f9f37897295e12f907", "2ca41e759a05d92db3c2ea82", "0fb0b21947dc99aac8697988" ], "type": "operation", "nodeLocation": { "x": -59839401.66913273, "y": 98051234.32813466 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error", "success", "success", "success" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "5de38b10bcefecba53722226" ], "canvasVersion": 3, "_id": "b41aa9a3-64fd-df6d-5f94-702eb97174a1", "uuid": "c0365074-065d-23b8-81a6-57863fde8c75", "namespace": { "type": "project", "name": "eu Excepteur velit mollit", "accessControl": { "read": [ "magna aliquip amet" ], "write": [ "aliquip veniam consequat culpa consectetur", "id fugiat", "in" ], "execute": [ "pariatur elit in cillum ipsum", "esse proident ut", "sed", "fugiat", "ex" ], "manage": [ "velit commodo dolore mollit", "Ut et anim", "laboris magna est" ] } }, "description": null, "preAutomationTime": 5000, "sla": 52952626, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "2d2d5e8bd6cd3305ac697ac5", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "e4bd89aff9eb49222b4715c3", "lastUpdatedVersion": "4.69.69", "tags": [ "in ut consequat proident", "ut Ut reprehenderit", "Excepteur ex in et", "Excepteur voluptate sit ex", "enim aliquip pariatur dolore" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/w/ox/ill" } ], "migrationVersion": 87212430 }, "edit": "ut sint ea fugiat" }
{ "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" ] }