I just solved the problem. The problem was while making the request. The discussion id (5835685921059532803)
I was sending with URL was in wrong format. It should be like: g-GROUP_ID-S-DISCUSSION/POST_ID
, for example: g-24405-S-5835685921059532803
.
So the URL should be:
Hope this would save someone's valuable time.