Summary
Rename Workflow
Description
Rename a Workflow in the database
Route
POST /workflow_builder/workflows/rename
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
workflow | object | yes | Workflow's data. |
newName | string | yes | New name for workflow |
{ "workflow": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "9c846543f2832f1cb04f0b2a", "0b5b886bfbb752f001855460", "72fbdb6e81cadc13b58c8a29" ], "nodeLocation": { "x": -76239868.93147498, "y": -69467611.36330232 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "2694e2fdc5a534c4f6ed89fd" ], "nodeLocation": { "x": -51881897.984035775, "y": -2727469.4036957026 } }, "error_handler": { "name": "childJob", "summary": "sit", "description": "do Excepteur nisi dolor ex", "app": "commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/aWKKGkRw/~0/~1" }, { "type": "encryption", "pointer": "/~0/L4v-1zRu/Pm.7I0dO+IO/CGEaEOY5Yl-/~0/~1/B8KM5co1xvK/~0/~1/~1" }, { "type": "encryption", "pointer": "/xh.mLm/~0/Iz/~0/kFDHLxptgF/Qa5O/i8R.wV/~0" }, { "type": "encryption", "pointer": "/~1/BCL,56.V/fHzvT/Lz/~1/k,v/udN/~0/hgRWJ" }, { "type": "encryption", "pointer": "/B7spoK/~1/Ugwy/~0/xtplAmKZ4f/~1" } ] }, "groups": [ "79166fb636d510cbff120ee5", "8a7ee979b686008c5d4f3f5b", "157ba0e331e5eb81af597389" ], "type": "operation", "nodeLocation": { "x": -55918021.09049788, "y": 11742204.355551243 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "e66962879d64b62b255b9bf5" ], "_id": "1c0605b8-2748-61da-2651-e28a8fb30279", "uuid": "5d65de90-2728-3fa1-9a3a-2ca16da2b7e2", "description": "magna velit adipisicing minim", "namespace": null, "preAutomationTime": 5000, "sla": 31333890, "errorHandler": null, "font_size": 12, "created": "1994-11-06T09:03:02.658Z", "created_by": "c3dce0699178831903a41ee8", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1986-02-02T05:44:00.455Z", "last_updated_by": "052f5e7fb54598576bdc49eb", "lastUpdatedVersion": "4.69.69", "tags": [ "esse aute", "sint id exercitation", "aliquip quis et", "qui", "ad" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/l.Y0/I1/NO/~1/~1/~1/d-/PnwV/~1/~0/FN6mapSZ2u/CJK" }, { "type": "encryption", "pointer": "/DHZIsp,/xYRe/~1/gx/~1/~1/~0/~1" }, { "type": "encryption", "pointer": "/K/y4.0Ssc/Ld/~0" }, { "type": "encryption", "pointer": "/BD6hk/~0/dbnrM8/da0/hNnRvD2K/~0/~1/~1/~0" } ], "migrationVersion": 8036100 }, "newName": "New Workflow Name" }
{ "type": "object", "properties": { "workflow": { "$ref": "workflowDocument" }, "newName": { "$ref": "workflowDocument#/definitions/workflowName", "examples": [ "New Workflow Name" ] } }, "required": [ "workflow", "newName" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | object | The renamed Workflow with its data and ID. |
{ "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "6ead2e628e40b6f3fa82ca0e", "75b12d8193ccab5080adaabd", "29011e656562f4913216f326" ], "nodeLocation": { "x": 31135584.593083188, "y": 79380771.28220657 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "8f3bfc9b2fa5174975c01949", "2b669999e1e1ed2aca284e4c", "cd1fda99d074a8a1e8cba4dc", "b26283532cb4dc66f73b9caf" ], "nodeLocation": { "x": -72756770.55778687, "y": 3052558.77468355 } }, "error_handler": { "name": "childJob", "summary": "exercitation aliquip occaecat", "description": "dolore dolor", "app": "id", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1" }, { "type": "encryption", "pointer": "/~1/Og/bD/UH6vaX5z" }, { "type": "encryption", "pointer": "/~0/~1/~1/Uz-kmkx3V/djQ,3j/~0/to,RFldvy" }, { "type": "encryption", "pointer": "/BiMwhO+k/~1/~0/ZB8+vMES/~0/VsET-/Ln" }, { "type": "encryption", "pointer": "/~0/XZJFALj/aWpNEKqc/~0" } ] }, "groups": [ "dc83fb915a02880c38219405" ], "type": "operation", "nodeLocation": { "x": -37750980.72102923, "y": -82457375.6959031 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "ba680bc4056dbfaa216cec02" ], "_id": "698a208a-1382-49da-ab68-6dd3fb2e82ed", "uuid": "99a7a042-768b-84f6-a47e-ce03899f642c", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": 84882553, "errorHandler": { "type": "consectetur eiusmod", "name": "non enim amet ex Duis" }, "font_size": 12, "created": "1998-05-09T16:12:24.971Z", "created_by": "c0c6e26c18cdf98e61e6cc79", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1971-08-18T13:47:25.114Z", "last_updated_by": "09d64f4266ae7a6b38140dfe", "lastUpdatedVersion": "4.69.69", "tags": [ "enim do nostrud", "ullamco anim incididunt Excepteur", "do cillum", "nisi do velit", "Ut mollit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/xR8j-J74gA/dAKg/CGvLyP5Tf/~0/qCNvZM/~0" }, { "type": "encryption", "pointer": "/~0" } ], "migrationVersion": 15701506 }
{ "$ref": "workflowDocument" }