# Unlist a topic via an API request

**URL:** <https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308>\
**Category:** Development\
**Tags:** unlisting\
**Created:** [August 9, 2018, 1:08pm UTC](https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308 "2018-08-09T13:08:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 9, 2018, 6:51pm UTC](https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308/2 "2018-08-09T18:51:52Z")

</div>

Are you able to get any other PUT/POST requests to work on other endpoints? Possibly the content-type is not set to “multipart/form-data”?

I was able to get it to work with this curl request:

```plaintext
curl -X PUT "https://url/t/topic-title/17/status" \
-H "Content-Type: multipart/form-data;" \
-F "api_key=apikey" \
-F "api_username=username" \
-F "status=visible" \
-F "enabled=false"

```

---

_[View the full topic](https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308)._
