POST/bots/{botId}/richmenus/{richmenuId}/image
Sets an uploaded image for a rich menu.
This API operation uses the file ID of the image uploaded using the Upload content operation.
The format and size of a rich menu image are as follows:
Note
- The image of a rich menu is displayed only in the mobile environment, while the text in the label is displayed only in the desktop environment.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
bot.message
bot
| Parameter | Type | Description |
|---|---|---|
| botId | integer | Bot ID required example : 2000001 format : int64 |
| richmenuId | string | Bot's rich menu ID required example : 40001 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| fileId | string | Rich menu image file ID required |
| i18nFileIds | array (i18nFileIds) | List of multilingual file IDs minItems : 0 |
| Property | Type | Description |
|---|---|---|
| language | string | Language code required Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW |
| fileId | string | File ID required |
example
1{2 "fileId": "jp1.1628695315008671000.1628781715.0.1000001.0.0.0",3 "i18nFileIds": [4 {5 "language": "en_US",6 "fileId": "jp1.1628695315008671000.1628781715.0.1000001.0.0.0"7 }8 ]9}No Content