# 「\*\*\*\*\*에 대하여」 주제가 생성되면 자동으로 비공개 처리

**URL:** https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980
**Category:** Development
**Tags:** rest-api, unlisting
**Created:** [12월 2, 2020, 11:06오전 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980 "2020-12-02T11:06:04Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ravi\_Teja\_Varma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ravi_teja_varma/32/195200_2.png) [@Ravi\_Teja\_Varma](https://meta.discourse.org/u/Ravi_Teja_Varma)
#### Post date: [12월 2, 2020, 11:06오전 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/1 "2020-12-02T11:06:04Z")

</div>

API를 통해 주제와 카테고리를 생성합니다. 카테고리를 생성하면 “about the \*\*\*” 주제가 자동으로 생성되는데, 이를 “비공개(unlist)” 상태로 변경하여 사용자가 볼 수 없게 하려고 합니다. 어떻게 하면 될까요? 조언이 필요합니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 2, 2020, 12:54오후 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/2 "2020-12-02T12:54:37Z")

</div>

> [@Ravi\_Teja\_Varma](#):
>
> 사용자가 볼 수 없도록 이를 '비공개(unlist)'로 설정하고 싶습니다. 어떻게 하면 되는지 조언을 구합니다.

API를 사용하세요. 주제를 생성할 때 주제 ID를 얻은 후 이를 비공개로 설정하면 됩니다. 비공개 설정 방법을 확인하려면 [Discourse API 역공학하기](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)를 참고하세요.

---

<div class="post-metadata">

### Author: ![Ravi\_Teja\_Varma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ravi_teja_varma/32/195200_2.png) [@Ravi\_Teja\_Varma](https://meta.discourse.org/u/Ravi_Teja_Varma)
#### Post date: [12월 3, 2020, 9:37오전 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/3 "2020-12-03T09:37:26Z")

</div>

카테고리를 생성할 때 Discourse가 자동으로 생성하기 때문에 주제 ID를 가지고 있지 않습니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 3, 2020, 10:44오전 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/4 "2020-12-03T10:44:15Z")

</div>

제가 보기에는, 카테고리를 생성할 때 반환되는 카테고리 레코드에 해당 토픽의 토픽 ID가 포함된 것 같습니다.

---

<div class="post-metadata">

### Author: ![Ravi\_Teja\_Varma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ravi_teja_varma/32/195200_2.png) [@Ravi\_Teja\_Varma](https://meta.discourse.org/u/Ravi_Teja_Varma)
#### Post date: [12월 3, 2020, 4:48오후 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/5 "2020-12-03T16:48:17Z")

</div>

이것은 샘플 응답이며, "topic\_id"를 찾을 수 없었습니다. @pfaffman 님, 여기에서 도와주실 수 있을까요?

```json
    {
    "category": {
        "id": 68,
        "name": "FREE TEST API 1 AUTO",
        "color": "0088CC",
        "text_color": "FFFFFF",
        "slug": "free-test-api-1-auto",
        "topic_count": 0,
        "post_count": 0,
        "position": 67,
        "description": null,
        "description_text": null,
        "description_excerpt": null,
        "topic_url": "/t/about-the-free-test-api-1-auto-category/82133",
        "read_restricted": false,
        "permission": null,
        "notification_level": 1,
        "can_edit": true,
        "topic_template": null,
        "has_children": null,
        "sort_order": null,
        "sort_ascending": null,
        "show_subcategory_list": false,
        "num_featured_topics": 3,
        "default_view": null,
        "subcategory_list_style": "rows_with_featured_topics",
        "default_top_period": "all",
        "default_list_filter": "all",
        "minimum_required_tags": 0,
        "navigate_to_first_post_after_read": false,
        "custom_fields": {},
        "min_tags_from_required_group": 1,
        "required_tag_group_name": null,
        "read_only_banner": null,
        "available_groups": [
            "admins"
        ],
        "auto_close_hours": null,
        "auto_close_based_on_last_post": false,
        "group_permissions": [
            {
                "permission_type": 1,
                "group_name": "everyone"
            }
        ],
        "email_in": null,
        "email_in_allow_strangers": false,
        "mailinglist_mirror": false,
        "all_topics_wiki": false,
        "can_delete": true,
        "cannot_delete_reason": null,
        "allow_badges": true,
        "topic_featured_link_allowed": true,
        "search_priority": 0,
        "uploaded_logo": null,
        "uploaded_background": null
    }
}

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 3, 2020, 5:28오후 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/6 "2020-12-03T17:28:23Z")

</div>

내가 찾던 것이 바로 이거인 것 같습니다:

> [@Ravi\_Teja\_Varma](#):
>
> “topic\_url”: “/t/about-the-free-test-api-1-auto-category/82133”,

---

<div class="post-metadata">

### Author: ![Ravi\_Teja\_Varma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ravi_teja_varma/32/195200_2.png) [@Ravi\_Teja\_Varma](https://meta.discourse.org/u/Ravi_Teja_Varma)
#### Post date: [12월 4, 2020, 12:00오후 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/7 "2020-12-04T12:00:44Z")

</div>

감사합니다, 작동했어요 @pfaffman

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [1월 3, 2021, 12:00오후 UTC](https://meta.discourse.org/t/unlist-about-the-topics-automatically-when-it-gets-created/171980/8 "2021-01-03T12:00:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
