ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**简要描述:** - 保存菜单 **请求URL:** 保存菜单 - `/adminapi/wechat.official_account_menu/save` 保存并发布菜单 - `/adminapi/wechat.official_account_menu/saveAndPublish` **请求方式:** - POST **参数说明:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |name|是|string |菜单名称 | |type|是|string |菜单类型 click-关键字 view-跳转网页链接 miniprogram- 小程序| |key|否|string |关键字 `菜单类型为click必填`| |url|否|string |网页链接 `菜单类型为view或miniprogram必填`| |appid|否|string |appid `菜单类型为miniprogram必填`| |pagepath|否|string |小程序路径 `菜单类型为miniprogram必填`| **参数示例** ``` { "menu": [ { "name": "公司产品", "type": "click", "key": "product", "sub_button": [ { "name": "LikeShop", "type": "click", "key": "ls" }, { "name": "LikeMall", "type": "view", "url": "https://lm.html" }, { "name": "官网", "type": "miniprogram", "url": "likeshop.html", "appid": "8888", "pagepath": "https://ls/ls.html" } ] }, { "name": "活动", "type": "view", "url": "https://activity.html" } ] } ``` **返回示例** ``` { "code": 1, "show": 0, "msg": "保存成功", "data": [] } ```