# What's the correct \`content-type\` when editing posts?

**URL:** <https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [August 10, 2021, 10:02am UTC](https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921 "2021-08-10T10:02:11Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [August 10, 2021, 7:35pm UTC](https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921/9 "2021-08-10T19:35:02Z")

</div>

> [@pedroleaoc](#):
>
> When I edit the post via the GUI, there seems to be a PUT request to the topic’s URL (apart from the one that actually edits the post `posts/post_id.json` ) which I can’t reproduce with a limited API key, only the global. I don’t see why, however, I wouldn’t be able to edit the post via the API even without this extra PUT request that happens in the GUI.

Do you have the “edit Posts” scope selected for your api key?

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/4/54637084aaa76ee9c7eff0fc31c805c97c5e6e8d.png)

---

_[View the full topic](https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921)._
