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": [ "b1c15a8aa5a13270973f2aca", "92568b63f83f8cdbdd63dc49" ], "x": 19128863.74091229, "y": -3754527.797143936 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a9e9209bffb77d28bf820be8" ], "x": -45342795.752028175, "y": -6088691.660514593 }, "error_handler": { "name": "childJob", "summary": "sunt velit ex voluptate", "description": "dolor nisi in anim", "app": "consectetur amet laborum sunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/xw4m/RxFuc/np8/gamz6/J/uy/~1" }, { "type": "encryption", "pointer": "/ZHGXRgvG3/~0/~0/~0/jtEJKD/~1/~0/x/8Il/oeVGG1./~0/~1" }, { "type": "encryption", "pointer": "/~1/~1/~1/~1/~1/~1/~1/aT" }, { "type": "encryption", "pointer": "/f/~1/xTNA-sW/ZD/~1/~1/GzTOX5cP/~1/wZYdi9" }, { "type": "encryption", "pointer": "/~0/Ge+/vhFYCxduSf/eq5nl+9zA" } ] }, "groups": [ "d772bd0440500af29977ded7", "192e7cec1232d0b3adfafa6d" ], "x": -71944804.13205256, "y": -87472660.15163073, "type": "operation", "gridCoordinate": { "x": -90898490.2907032, "y": 47974750.062313676 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "d113518a0a903179c898935b", "32b371aa5bce7f36bbf9cf09", "8146b97f90941654c6aa8b4b", "6ae3ac71f1fbf109154b6dc8", "8372255ec8d2362e5be36cd6" ], "_id": "ad30300a-f052-f049-aa6a-d2b554acb565", "description": "cupidatat aute ex occaecat", "namespace": null, "errorHandler": { "type": "labore nostrud ex quis", "name": "laborum non" }, "font_size": 12, "created": "2021-05-08T13:25:54.11Z", "created_by": "aeb5bcc518e664cd58051781", "createdVersion": "incididunt cupidatat magna", "last_updated": "2008-05-09T07:00:10.245Z", "last_updated_by": "d94da8037e77f872012d2dc7", "lastUpdatedVersion": "est nulla quis do", "tags": [ "reprehenderit velit", "nostrud esse", "exercitation" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/d/Z.H/QREjhu2p-/WyiJ+Zc/~0/~1/~0/X/" }, { "type": "encryption", "pointer": "/ZGi3VB4Mulv/pFs6B6/y/Guig/mLoa/yYn/oxL/mh/~1/~1/z.YkpU9A/~1/OLCWT/~1" } ] }, "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": [ "4e4cca88b912922e2a1e0abb", "d0f354d73a48a5e0d7330782", "b5d9dcc75fc6b13c8256d2c3", "8dd956b42fa327feea3530b7", "60d5f324ac6a0c980b2d2aa4" ], "x": -37793332.10921041, "y": -55454870.19528901 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0ecc425563b1a23f68c6cd06", "d4e599653d814fb368e5a0c0", "f55d63904d71959eb5d21e7b" ], "x": -1209943.847355619, "y": -3132432.5037461966 }, "error_handler": { "name": "childJob", "summary": "ea", "description": "velit Excepteur sunt sit", "app": "consequat quis ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/U/l0wbe5Fma/LEDMH/v1bTgcSDc" }, { "type": "encryption", "pointer": "/~0/~0/~1" }, { "type": "encryption", "pointer": "/~0/~1/d" } ] }, "groups": [ "2c2f966b9dfaff9cd7fea500", "62743cd15e13b863847cd8b4", "6df64c400d6753618430165d" ], "x": 47991682.520861596, "y": -99250844.35634321, "type": "operation", "gridCoordinate": { "x": 28531062.144767597, "y": 87955869.95574638 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "62a22b2178abeb74e417bcd7", "81baed43e2c2e610926fe4da" ], "_id": "16286034-2665-17a0-3ba6-bc3e87af71d8", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "in elit eiusmod sunt qui", "accessControl": { "read": [ "Duis adipisicing in consectetur ex", "in eiusmod fugiat", "elit", "incididunt ad occaecat dolor", "deserunt ea Ut in pariatur" ], "execute": [ "occaecat", "nulla aute non" ], "write": [ "reprehenderit sunt ex laboris culpa" ], "manage": [ "quis pariatur proident voluptate commodo", "dolor ut sint nulla veniam", "ea quis irure", "pariatur", "in Lorem qui" ] } }, "errorHandler": { "type": "anim cupidatat aliqua dolor", "name": "irure voluptate id aute do" }, "font_size": 12, "created": "2016-02-03T10:43:17.486Z", "created_by": "58cc47607a0b34c4a0d8a410", "createdVersion": "aute sed", "last_updated": "1991-07-28T00:20:18.547Z", "last_updated_by": "83b77760c2b94fb2c15f87fa", "lastUpdatedVersion": "occaecat", "tags": [ "proident ut officia" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/z/LOR4epPjRj/aY1sX/~0/~1/C,HXMvn/~1/~1/~0/jW," }, { "type": "encryption", "pointer": "/~1/~1/~0" }, { "type": "encryption", "pointer": "/~0/~1/nc,tv/T2fnsbc+/s/xSZ6vVVa/~1/j0/eod8X9MYUi./~0/UgR6jcc/~1" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0/~0/~1/~1/roO/Jo/wM9vOO" } ] }
{ "$ref": "workflowDocument" }