# Using the API, can't PUT to topic unless slug is on the URL

**URL:** <https://meta.discourse.org/t/using-the-api-cant-put-to-topic-unless-slug-is-on-the-url/50545>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [2016年九月23日 14:53 UTC](https://meta.discourse.org/t/using-the-api-cant-put-to-topic-unless-slug-is-on-the-url/50545 "2016-09-23T14:53:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![cappslock](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cappslock/32/120789_2.png) [@cappslock](https://meta.discourse.org/u/cappslock)\
**Post date:** [2016年九月28日 01:54 UTC](https://meta.discourse.org/t/using-the-api-cant-put-to-topic-unless-slug-is-on-the-url/50545/10 "2016-09-28T01:54:16Z")

</div>

I edited the original topic to clarify _why_ this is a bug, but I’d like to highlight that the API documentation itself states that this should work:

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-api-documentation/22706):
>
> Discourse API Please view the Discourse API Documentation site for detailed info: [https://docs.discourse.org](https://docs.discourse.org)information_source Authentication API requests must use HTTP header based authentication. Pass your Api-Key and Api-Username as HTTP headers. Authentication via query parameters or request body is not supported (this was removed in April 2020). Please see the example cURL request below. The only API endpoints that continue to support credentials in query parameters are requests to…

I think my previous point is relevant as well.

---

_[View the full topic](https://meta.discourse.org/t/using-the-api-cant-put-to-topic-unless-slug-is-on-the-url/50545)._
