Reply to a specific post via API

javascript

(cpk) #1

Hey all. I am attempting to reply to specific post in a topic thread. I can reply to topics, but can’t seem to reply to specific post numbers.

sample x-www-form-urlencoded data:

category:6
topic_id:40
reply_to_post_number:98
raw:reply to post id 98 with 20 chars

This successfully posts a reply to the topic thread, but doesn’t seem to show it as a reply within my web instance. I have tested this using the POSTMAN chrome app which successfully shows the post as a nested reply. Any insight would be a huge help. Thanks.

Edit: I AM including the api_key and api_username to the endpoint.


(Khoa Nguyen) #2

Did you send api key and api user?


(cpk) #3

Yes I did. Forgot to mention that. Will edit my post.

Thanks.


(Afonso Neto) #4

Same here! The reply is applied to topic thread but it doesn’t increment reply count to the post with id passed through reply_to_post_number parameter.

EDIT: My mistake, I was passing post id value as reply_to_post_number parameter, and not post_number itself. It worked now!


(Sung Kim) #5

Do you mean we should do?
category:6
topic_id:40
post_number:98
raw:reply to post id 98 with 20 chars