Upload / replace a LINE rich menu image
line_upload_rich_menu_imageReplace the image on an existing LINE rich menu without recreating it. Downloads from a public HTTPS URL, validates JPEG/PNG ≤1MB, and uploads while preserving menu structure.
Instructions
Replace the image on an EXISTING rich menu without recreating it — richMenuId, tappable areas, and per-user links are preserved. Downloads from a public HTTPS URL, validates JPEG/PNG ≤1MB, then uploads to the api-data.line.me content endpoint (the domain switch that trips up most implementations). Private/internal addresses are blocked by an SSRF guard.
Returns { rich_menu_id, uploaded, bytes }.
Example: "เปลี่ยนรูป rich menu R123" → { rich_menu_id:"R123", image_url:"https://.../banner.png" }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | Optional OA id; defaults to active OA. | |
| image_url | Yes | Public HTTPS URL of the new image. Must be JPEG or PNG, ≤1MB. | |
| rich_menu_id | Yes | ID of the existing rich menu whose image will be replaced. |