# Sets reply\_to when creating a message through the API?

**URL:** <https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [February 18, 2018, 9:27pm UTC](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903 "2018-02-18T21:27:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mkolar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mkolar/32/301202_2.png) [@mkolar](https://meta.discourse.org/u/mkolar)\
**Post date:** [April 4, 2023, 12:02pm UTC](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903/7 "2023-04-04T12:02:42Z")

</div>

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

---

_[View the full topic](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903)._
