Discussion API - for Merge Request Difference is giving "500 Internal Server Error"

Trying to use Discussion API (REST) to post observations as comments at particular lines

I’m following the documentation -

  • What version are you on? Are you using self-managed or GitLab.com?

    • GitLab (Hint: /help): GitLab.com Free Version
    • Runner (Hint: /admin/runners): Shared Free Runner
  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
    Reference - Discussions API | GitLab

  • Tried with bash script in pipeline, using CURL on local terminal, using postman - No option seems giving me response
  • I’m getting good responses for the GET requests, however, the POST request is not working well.
  • Tried with an alternative “Notes” API, but it does not allow me to add a comment at a particular file and line in the Merge Request difference.