# Définir une catégorie pour utiliser le plugin solved via la console

**URL:** https://meta.discourse.org/t/setting-a-category-to-use-the-solved-plugin-via-console/107875
**Category:** Development
**Created:** [Janvier 30, 2019, 12:33 UTC](https://meta.discourse.org/t/setting-a-category-to-use-the-solved-plugin-via-console/107875 "2019-01-30T00:33:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [Janvier 30, 2019, 12:33 UTC](https://meta.discourse.org/t/setting-a-category-to-use-the-solved-plugin-via-console/107875/1 "2019-01-30T00:33:22Z")

</div>

How do you set a category to use the solved plugin via the Rails console?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Janvier 30, 2019, 10:13 UTC](https://meta.discourse.org/t/setting-a-category-to-use-the-solved-plugin-via-console/107875/2 "2019-01-30T10:13:02Z")

</div>

Look at what the UI does and which route it uses and then look at how it’s done in the code.

---

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [Janvier 31, 2019, 1:39 UTC](https://meta.discourse.org/t/setting-a-category-to-use-the-solved-plugin-via-console/107875/3 "2019-01-31T01:39:59Z")

</div>

> [@zogstrip](#):
>
> Look at what the UI does and which route it uses

Is there a ‘how to’ topic on this?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [Janvier 31, 2019, 2:25 UTC](https://meta.discourse.org/t/setting-a-category-to-use-the-solved-plugin-via-console/107875/4 "2019-01-31T02:25:26Z")

</div>

Yes.

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …
