updateMenu
Update an existing menu by ID to rename it, toggle active status, or adjust CSS/HTML wrapper attributes. Omitted fields remain unchanged, and changes apply immediately.
Instructions
Update a menu - Update an existing menu record by ID. Fields omitted are untouched. Writes live data.
Use when: renaming a menu, toggling menu_active, or adjusting its CSS/HTML wrapper attributes.
Required: menu_id.
See also: createMenu (add new), deleteMenu (remove permanently).
Returns: { status: "success", message: {...updatedRecord}, _admin_edit_url: "..." } - the full updated record after changes applied. _admin_edit_url is a centralized-admin deep-link to the Menu Builder editor for this menu_id — surface it to the user so they can jump straight to the admin edit screen for the menu just updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu_id | Yes | ||
| menu_name | No | ||
| menu_title | No | ||
| menu_active | No | ||
| _clear_fields | No | Column names to clear to empty string. Available on every `update*` operation. Works on base columns AND EAV/`users_meta` rows (rows preserved with `value=""`). To actually clear a field you MUST use this parameter — sending the field with `""` alone is a no-op (BD drops empty values). To remove a `users_meta` row entirely, use `deleteUserMeta`. See **Rule: Clearing fields**. Example: `_clear_fields: ["h2", "hero_link_url"]`. |