Menus: update
menus_updateRename a menu or change the role it is shown to without altering its items. Check with the user before running it, since moving a menu to a role that already has one may hide it.
Instructions
Rename a menu or change the role it is shown to. Changes the menu's name, the role it is shown to, or both; its items stay as they are. A role is shown only its first menu, so moving a menu to a role that already has one may hide it; use menus_reorder to choose which comes first. It changes or deletes existing data, so check with the user before running it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New menu name | |
| role | No | ID of the role the menu is shown to | |
| menu_id | Yes | Menu ID to update. Find it with menus_list. |