# 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:** 1

<div class="post-metadata">

**Author:** ![julienrusso](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@julienrusso](https://meta.discourse.org/u/julienrusso)\
**Post date:** [August 9, 2018, 1:08pm UTC](https://meta.discourse.org/t/unlist-a-topic-via-an-api-request/94308/1 "2018-08-09T13:08:31Z")

</div>

Hello, I have a question. I try to unlist a topic from a category using the API.

When I try to call this request:

```
{{base_url}}/t/my-super-topic/12/status?api_key={{api_key}}&api_username={{api_username}}

```

using a PUT request with the following form-data params:

```
status: visible, enabled: false

```

I got a 400 - Bad request error.

This is exactly the same request applied when I unlist the topic via the web interface.  
Is there any issue with the API call ?

Thanks !

---

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