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": [ "9ddd7ceb7c159b3d560e3bde" ], "nodeLocation": { "x": 14693030.428205132, "y": 37739517.151859045 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "7ab98118f180b3d03e2a6ea5" ], "nodeLocation": { "x": 48571809.028855115, "y": -19285010.67560564 } }, "error_handler": { "name": "childJob", "summary": "Duis commodo ut", "description": "nulla in", "app": "est Duis nisi", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/zisQkFEcgs/uXUDd/~1" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~0/twy0/~0/~1/rbxWuE7" }, { "type": "encryption", "pointer": "/~1/~1/YneU/~0/i2ieu6Wz,18/~1/~1/J2m3DA4BAxq" } ] }, "groups": [ "94963cfcf04ab9b3aac53c71", "f253c5e7980c0328e0cd4103" ], "type": "operation", "nodeLocation": { "x": -82753030.21361911, "y": 1692466.2198213488 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "dcd3be56d1336479aa0305a5", "305d3589a466774e8c78f74e", "540e18274cdc0ff2bcc50a67" ], "_id": "8338a70a-eb1e-2c46-f4d7-248f51ea927c", "uuid": "2ba9a0c4-5bae-09e1-68d0-1ab53ee8c585", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": 81344718, "errorHandler": { "type": "quis aliquip labore dolor enim", "name": "enim" }, "font_size": 12, "created": "1978-05-27T10:33:15.006Z", "created_by": "1f16732348f3bedcba41b06b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1959-03-15T02:01:55.434Z", "last_updated_by": "12f8bf574ba22008b4cbe532", "lastUpdatedVersion": "4.69.69", "tags": [ "elit adipisicing in", "occaecat Duis", "sunt reprehenderit labore cillum sint" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/gP/kmwWw6p3/~1/~0/~1/~0" }, { "type": "encryption", "pointer": "/~0/d4KA05ifFP/kRhQ8Lzu/~1/~0/~1/~1/~0/~1" } ], "migrationVersion": 60497985 }, "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": [ "cd889d7c322f90a1b8bc9a18", "1a69d7d4446761a9d0794c81" ], "nodeLocation": { "x": 35527365.23387164, "y": -26112712.50026323 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4a254d2028c9c2c7a3666e10", "a6d213eddcd87ec61e1e4023", "60e257d1f1a5a4c47369aa77", "54b3ff0cc21a1018da988302", "08d1ca219eb16d2983537bfa" ], "nodeLocation": { "x": 90134684.23723713, "y": 17563882.359082907 } }, "error_handler": { "name": "childJob", "summary": "elit exercitation ut", "description": "tempor aute", "app": "adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Y/ReR4JT/L/~1/~1/Ib47ju/~1/kpuoAPyft/Hf" }, { "type": "encryption", "pointer": "/~1/~0/wvWJuwWhR/~1/~0/zf/~1/~0/~0" } ] }, "groups": [ "66ef6055b3d1ea8694b9788d", "eba9c6ec2cf5cd1c6ad0c327", "fdde823ff98bb5ea3e8cbf51", "08300b511e378a57271253c1" ], "type": "operation", "nodeLocation": { "x": 10780902.013828754, "y": 47957945.83180761 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "cbff064290347e6cc07b538c", "80f223a7429ca3c7b1e1f926", "cb959ead1ea14f999f432ac8", "2cb887e0e9d4dd2dccb5ead4", "585f7608bf4c53227b1142f3" ], "_id": "6342a40a-ac52-665f-9392-9191f91bc36b", "uuid": "975f4a2f-bcdf-c5d0-d101-77e469880b8c", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "mollit incididunt eiusmod", "accessControl": { "read": [ "Duis cupidatat", "dolor reprehenderit", "sed eiusmod deserunt ut", "nisi esse", "elit est consectetur" ], "execute": [ "enim eu in", "dolore", "velit Ut", "minim in", "Ut" ], "write": [ "irure eiusmod Lorem", "ullamco non reprehenderit proident aute" ], "manage": [ "dolor" ] } }, "preAutomationTime": 250000, "sla": 48787018, "errorHandler": { "type": "voluptate enim est ipsum", "name": "amet ex laborum esse" }, "font_size": 12, "created": "1953-04-02T11:21:25.928Z", "created_by": "24bcc7fb67d43a8e328e3ad3", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1966-12-21T08:56:02.384Z", "last_updated_by": "e8a880f2914f8d364a90e822", "lastUpdatedVersion": "4.69.69", "tags": [ "ullamco minim sint eiusmod consequat", "nisi", "eu sint nostrud", "fugiat officia dolore elit", "sunt id culpa aliquip" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/B2+9mYLC/opFd1Ch/~0/~0/~0/qthAhARueJz" }, { "type": "encryption", "pointer": "/v/u67FDEJkR/VoZy/~0/~1/~0/~0/aWEYoHy+j" } ], "migrationVersion": 57891792 }
{ "$ref": "workflowDocument" }