Build LINE Rich Menu (single panel)
line_build_rich_menuCreate a LINE Rich Menu from a hosted image in one call: validate, create, upload, and set as default, avoiding failed image uploads by handling the api-data.line.me domain switch automatically.
Instructions
Create a LINE Rich Menu from an already-hosted image in one call: validate → create → upload image → set as default. Collapses 4 LINE API calls into one, incl. the api-data.line.me domain switch for image upload (the #1 cause of failed implementations). Single-panel menus only. To RENDER the image from labels instead of hosting your own, use line_design_rich_menu_image.
image_url must be public HTTPS JPEG/PNG, width 800–2500px, aspect ≥1.45, ≤1MB (validated client-side before upload). areas are tappable regions with postback/message/uri/richmenuswitch actions and must fit inside the image bounds. size 'large' (2500x1686, default) or 'compact' (2500x843). set_as_default default true. Max 1,000 rich menus per OA.
Returns { rich_menu_id, name, set_as_default, warnings[] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | ||
| name | Yes | Internal name (admin-only). | |
| size | No | compact (2500x843) for a single row, large (2500x1686) for a full panel. Default 'large'. | large |
| areas | Yes | Tappable areas. Coordinates are in image pixels. | |
| selected | No | Whether the rich menu opens by default when chat is opened. | |
| image_url | Yes | Public HTTPS URL of the rich menu image. Must be JPEG or PNG, aspect ratio ≥ 1.45, ≤1MB. | |
| chat_bar_text | Yes | The button label shown in chat bar. | |
| set_as_default | No | Set this rich menu as the account-wide default. Default true. |