Set the default rich menu

I have tried to use the instructions from https://developers.line.biz/en/docs/messaging-api/using-rich-menus/#creating-a-rich-menu-using-the-messaging-api to set a rich menu. The string I used is as follows

curl -v -X POST https://api.line.me/v2/bot/user/all/richmenu/richmenu-....... -H 'Authorization: Bearer {......}'

The command does not work. It keeps returning bad request: The server could not understand the request that your browser sent. How do I fix this?

  • 0
  • 4
  • 4477
  • X(旧Twitter) facebook

Thank you @Edison peng. I solved the same issue by passing in Content-Length: 0.

Wish all of you have a nice day :D

  • 0

I run into the same issue. The status code is 411 Length Required.

After adding header "-H 'Content-Length: 0'" in my API request, line accepts it without error.

  • 2

Can you get created rich menu id via Get rich menu list API? https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list

If you get it, pleace share more detail set default richmenu API response(status code and detail).

  • 0

Could you share the error message?

  • 0

Similar posts

    No similar posts

Are you sure? question.vm