[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003erenameVariableById\u003c/code\u003e method updates a variable's name within the workspace's variable map using the variable's ID.\u003c/p\u003e\n"],["\u003cp\u003eIt requires two parameters: the ID of the variable to rename (\u003ccode\u003eid\u003c/code\u003e) and the desired new name for the variable (\u003ccode\u003enewName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThis method does not return any value (void) after execution.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Workspace](./blockly.workspace_class.md) \\\u003e [renameVariableById](./blockly.workspace_class.renamevariablebyid_1_method.md)\n\nWorkspace.renameVariableById() method\n-------------------------------------\n\n\u003e | **Warning:** This API is now obsolete.\n\u003e\n\u003e v12: use Blockly.Workspace.getVariableMap().renameVariable\n\nRename a variable by updating its name in the variable map. Identify the variable to rename with the given ID.\n\n**Signature:** \n\n renameVariableById(id: string, newName: string): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|--------|-------------------------------|\n| id | string | ID of the variable to rename. |\n| newName | string | New variable name. |\n\n**Returns:**\n\nvoid"]]