# Was ist der korrekte \`content-type\` beim Bearbeiten von Beiträgen?

**URL:** <https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [10. August 2021 um 10:02 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:** 6

<div class="post-metadata">

**Author:** ![pedroleaoc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pedroleaoc/32/230359_2.png) [@pedroleaoc](https://meta.discourse.org/u/pedroleaoc)\
**Post date:** [10. August 2021 um 18:50 UTC](https://meta.discourse.org/t/whats-the-correct-content-type-when-editing-posts/199921/6 "2021-08-10T18:50:00Z")

</div>

Doh, natürlich! Nicht alle GET-Anfragen erfordern eine Autorisierung!  
Das ist ein sehr hilfreicher Hinweis, ich werde mir das ansehen. Danke!

Folgendes weiß ich bereits durch Reverse Engineering:

- `api-key` statt `api_key`
- Die `PUT`-Anfrage erfordert `"content-type": "application/x-www-form-urlencoded"`
- Die Daten liegen nicht im JSON-Format vor (sie sind kodiert, obwohl ich die richtige Kodierung bisher nicht gefunden habe)

---

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