createMenu
Create a new navigation menu for your directory. Set a unique internal name and visible title, then add menu items with the returned menu ID.
Instructions
Create a menu - Create a new menu record. Writes live data.
Use when: adding a new navigation container. After creating the container, add entries via createMenuItem using the returned menu_id.
Required: menu_name, menu_title.
Pre-check before create: BD does NOT enforce uniqueness on menu_name. Duplicates cause the wrong menu to render wherever the menu is referenced. Do a server-side filter-find: listMenus property=menu_name property_value=<proposed> property_operator==. Zero rows = name free; >=1 row = taken. Do NOT paginate unfiltered lists - filtered lookup is one tiny response. If taken: reuse via updateMenu, OR ask the user, OR pick an alternate menu_name and re-check. Never silently create a duplicate.
Parameter interactions:
menu_name(max 35 chars) - the internal identifiermenu_title- the visible headingmenu_active:0=Inactive,1=Active
See also: updateMenu (modify existing).
Returns: { status: "success", message: {...createdRecord}, _admin_edit_url: "..." }. _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 created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu_name | Yes | ||
| menu_title | Yes | ||
| menu_active | No | ||
| menu_div_id | No | ||
| menu_div_css | No | ||
| menu_effects | No | ||
| menu_div_code | No | ||
| menu_location | No | ||
| menu_div_class | No |