# API post request without an Accept header returns 406

**URL:** <https://meta.discourse.org/t/api-post-request-without-an-accept-header-returns-406/175203>\
**Category:** Feature\
**Created:** [January 5, 2021, 8:22pm UTC](https://meta.discourse.org/t/api-post-request-without-an-accept-header-returns-406/175203 "2021-01-05T20:22:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [January 7, 2021, 2:20am UTC](https://meta.discourse.org/t/api-post-request-without-an-accept-header-returns-406/175203/2 "2021-01-07T02:20:26Z")

</div>

This is very likely coming from the Rails stack (not Discourse), very likely complicated to work around.

I can see some assertions in actionpack for 406 status.

Going to recategorize this as #Contribute > Feature for now, since there is a trivial workaround and appears to be by design in Rails.

---

_[View the full topic](https://meta.discourse.org/t/api-post-request-without-an-accept-header-returns-406/175203)._
