Wechat OfficialAccount icon

Wechat OfficialAccount

Wechat OfficialAccount

Actions77

菜单管理 → 创建自定义菜单

AI-generated

Summary

Create a custom WeChat Official Account menu by submitting configured top-level buttons and optional submenus. Choose a menu type and provide its corresponding key, URL, media ID, article ID, or mini-program details as needed.

Inputs

  • button (required) — Configure 1–3 top-level menu items. Each needs a name and type. You can optionally add up to 5 submenus under each top-level item; submenus also need a name and type.
  • type (required) — Select the action for each item: click event, web link, scan or image/location event, media or article message, or mini-program.
  • key — For click, scan, image, and location event types, provide the key sent through the message interface.
  • url — For web link and mini-program types, provide the URL. For mini-program menus, this is also the fallback link for older clients.
  • media_id — For media message items, provide the permanent media ID.
  • appid — For mini-program items, provide the mini-program AppID.
  • pagepath — For mini-program items, provide the page path.
  • article_id — For article message items, provide the article ID.

Output shape

Not determinable from the supplied source pack.

The operation implementation is omitted from the pack, so the returned data shape cannot be confirmed.

Links

Discussion