POST/bots/{botId}/richmenus/{richmenuId}/image

업로드된 이미지를 리치 메뉴에 설정한다.
콘텐츠 업로드 API를 사용해 업로드된 이미지의 파일 ID를 사용한다.
리치 메뉴 이미지의 조건은 다음과 같다.

  • 이미지 형식: JPEG 혹은 PNG
  • 이미지 크기: 2500x1686 혹은 2500x843픽셀
  • 최대 파일 크기: 1MB

참고
리치 메뉴의 이미지는 모바일 환경에서만 표시되며, PC에서는 label에 입력한 텍스트 정보만 표시된다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

bot.message
bot

HTTP Request

POSThttps://www.worksapis.com/v1.0/bots/{botId}/richmenus/{richmenuId}/image

Path Parameters

ParameterTypeDescription
botId integer 

봇 ID


required
example : 2000001
format : int64 
richmenuId string 

봇 리치 메뉴 ID


required
example : 40001 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
fileId string 

리치 메뉴 이미지 파일 ID


required 
i18nFileIds array (i18nFileIds) 

다국어 파일 ID 목록


minItems : 0 

i18nFileIds

PropertyTypeDescription
language string 

다국어 언어 코드


required
Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW 
fileId string 

파일 ID


required 

Request Example

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}

Response

HTTP 204

No Content