Sets reply_to when creating a message through the API?

Hi all.

I’m trying to get a post created to show as a reply to another post, but as multiple people above, I’m not very successful.

I’m sending reply_to_post_number as one of the keys in the payload to /posts.json, with value taken from another posts post_number, but that is not doing anything. The category security settings are fully permissive to all users.

Interestingly the response changes when I use reply_to_post_number in the post request vs when I don’t. If I don’t send it with the request, 'reply_to_post_number': None, will be present in the response, however, if I do send it with the request with an integer value pointing to previous post, the response doesn’t have that key whatsoever.

This seems totally undocumented, which I very much realize, but any help would be appreciated. Discourse API docs are of no help as it is not mentioned there at all.

thanks

1 Like