# 500 or 400 when updating the content of a post using the API

**URL:** <https://meta.discourse.org/t/500-or-400-when-updating-the-content-of-a-post-using-the-api/115825>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [April 24, 2019, 9:30am UTC](https://meta.discourse.org/t/500-or-400-when-updating-the-content-of-a-post-using-the-api/115825 "2019-04-24T09:30:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jviotti](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jviotti/32/138866_2.png) [@jviotti](https://meta.discourse.org/u/jviotti)\
**Post date:** [April 24, 2019, 9:56am UTC](https://meta.discourse.org/t/500-or-400-when-updating-the-content-of-a-post-using-the-api/115825/4 "2019-04-24T09:56:24Z")

</div>

Turns out it works fine if I pass `raw` instead of `post` in the request body. The docs could probably be clearer about that 🙂

---

_[View the full topic](https://meta.discourse.org/t/500-or-400-when-updating-the-content-of-a-post-using-the-api/115825)._
