# 406 error when making POST request in API?

**URL:** <https://discuss.rapid7.com/t/406-error-when-making-post-request-in-api/40593>\
**Category:** API\
**Created:** [August 2, 2024, 4:53pm UTC](https://discuss.rapid7.com/t/406-error-when-making-post-request-in-api/40593 "2024-08-02T16:53:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alistair\_longley](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/a/47e85d/32.png) [@alistair\_longley](https://discuss.rapid7.com/u/alistair_longley)\
**Post date:** [October 8, 2024, 8:48am UTC](https://discuss.rapid7.com/t/406-error-when-making-post-request-in-api/40593/2 "2024-10-08T08:48:07Z")

</div>

Try deleting your “Cookie” header, and not sending nexposeCCSessionID at all. Only send the “Authorization: Basic …” header for authentication

> [@Exceptions via API - 406's](https://discuss.rapid7.com/t/exceptions-via-api-406s/6681/7):
>
> For anyone still experiencing this, the issue is that the request contains the “nexposeCCSessionID” cookie. When making an API call, the only authentication needed is the “Authorization” header, if at some point the IVM server returns that session ID cookie, then any requests you send with it will error with HTTP 406 “Not Acceptable”. Delete the nexposeCCSessionID cookie from your request to fix this. Or as the other commenters mention, completely reinstall/update whichever software you were u…

---

_[View the full topic](https://discuss.rapid7.com/t/406-error-when-making-post-request-in-api/40593)._
