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": [ "943c1423a219c1b5ec70b73b", "8a608858368b6b73784c29af" ], "x": -9739020.707567155, "y": -37881753.58248931 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "fced8ed67ca7ab5063ea3cff", "019205e4dd403a5821879075", "3a31a72148bd53bab4062eed" ], "x": -2386982.998140529, "y": -3556606.7063349783 }, "error_handler": { "name": "childJob", "summary": "adipisicing labore elit", "description": "ea do exercitation proident voluptate", "app": "laborum nisi exercitation", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Nzt/~0" }, { "type": "encryption", "pointer": "/NPVr/qfP3/koEMcS/Pe/~1" }, { "type": "encryption", "pointer": "/~1/vMW/U/~1/uv-Pyr/~0/~1/HFU/~1/K/jf,aCTdmgGb" }, { "type": "encryption", "pointer": "/DlEBpqTvgCg/~0/~0" }, { "type": "encryption", "pointer": "/zV/~0/~1/~1/LYaNilP/~0/~1/~0/~1/M" } ] }, "groups": [ "876c9453f62b3ac82923b408", "aac815f8dc55bf31ab2fdbdb" ], "x": -92921464.94456817, "y": -26001934.434525788, "type": "operation", "gridCoordinate": { "x": 27585390.021433115, "y": -1923497.1730826497 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "d4f6c2a016180ea6b7e09361", "fe0861a23c4cbd387eeb1b6f" ], "_id": "5da45c20-80b8-753f-aba8-dffc1776cdc3", "description": "qui sit ut cillum", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "elit dolor proident", "accessControl": { "read": [ "pariatur ipsum est magna ullamco", "ut aliqua laboris", "eiusmod consectetur sit non nostrud", "dolor Excepteur est aliquip", "fugiat cupidatat nulla adipisicing" ], "execute": [ "esse", "in et do", "anim non tempor Excepteur cupidatat" ], "write": [ "voluptate consectetur" ], "manage": [ "non reprehenderit laboris sed incididunt", "dolor sint culpa quis reprehenderit", "ut deserunt pariatur", "in id ipsum" ] } }, "errorHandler": { "type": "in cillum mollit do culpa", "name": "aliquip eu culpa consequat" }, "font_size": 12, "created": "2000-01-25T20:41:30.57Z", "created_by": "2ee54324d4e4ccec5202daa6", "createdVersion": "Duis tempor cillum pariatur", "last_updated": "1997-12-04T13:42:04.165Z", "last_updated_by": "e8ca1d0e4ef678289777d894", "lastUpdatedVersion": "incididunt aliquip", "tags": [ "do laboris", "officia Duis dolor laboris", "nisi sit aliquip", "aliqua eu id laborum", "ut amet in dolore minim" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/XvQVd/zg,r3ddpz7Y/~1/coBJz908-ZC/Of/umKzAWVt/n0/~0/~1/A5,u3Sl/~1/~0" }, { "type": "encryption", "pointer": "/fLZ/CbnbOvf/~1/MS-9UF/~1/~0/~1" }, { "type": "encryption", "pointer": "/H/oazm/NNvZY08p2tK/wi,m1/~1/u/~0" }, { "type": "encryption", "pointer": "/YvulfAq/~1/~1/~1/zK" }, { "type": "encryption", "pointer": "/ujtor844u/~0/tAuTrYRE/~0/~0/~1/~0/~0/H3/~0" } ] }, "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": [ "839683d9a47e0d4ddbf5e911", "b1561fcaf4b5302e041c991d" ], "x": 54608987.86891213, "y": 99199603.22895452 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "66f05996f740caf7cd96482d" ], "x": -10283357.556770772, "y": -4749702.530031025 }, "error_handler": { "name": "childJob", "summary": "in Lorem enim amet", "description": "elit", "app": "deserunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/drmh.3/~1" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ "d36ca39e9092b1270c3a35b1", "39358cac6f7997eb318c7da8", "9abda241a2f15926f2905bde", "a8c19ac96ed0644c279c91b4", "8e958eb2221a08e0ce62799c" ], "x": 75785904.17356989, "y": 75884985.13123882, "type": "operation", "gridCoordinate": { "x": -48839263.222690165, "y": 93607433.01885158 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "2ca2d318c2c018f07447f5f5" ], "_id": "8a7a1345-ec37-0ee2-38a4-bceee491cab7", "description": "exercitation", "namespace": null, "errorHandler": null, "font_size": 12, "created": "1966-01-18T00:51:01.728Z", "created_by": "e09fd9b404f490f3db6602e3", "createdVersion": "exercitation Ut sint reprehenderit deserunt", "last_updated": "1990-01-26T15:24:03.926Z", "last_updated_by": "47ce66d0a697f9bf50aad0c7", "lastUpdatedVersion": "aliquip et", "tags": [ "eu consectetur qui ad", "in labore est nisi elit", "minim exercitation velit magna", "Lorem nostrud" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/f08Syhe/VYvm8WW3/~1/~1/BOy-/~0/~1/~0" }, { "type": "encryption", "pointer": "/~1/~0/AY.I4Gmpq/~1/od-/ocN/O+1Ygk/~0/R-Ruf9ovkbL" }, { "type": "encryption", "pointer": "/~0/~0/~0/~0/~1/~0/~0/~0/gHDyPL+LD/tYLn" }, { "type": "encryption", "pointer": "/YfoXoGzY3A" } ] }
{ "$ref": "workflowDocument" }