# 用于收藏帖子和主题的 API，以及移除它们的 API

**URL:** <https://meta.discourse.org/t/apis-for-bookmarking-post-and-topic-and-removing-them-as-well/117981>\
**Category:** Support\
**Created:** [2019年五月16日 23:47 UTC](https://meta.discourse.org/t/apis-for-bookmarking-post-and-topic-and-removing-them-as-well/117981 "2019-05-16T23:47:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![centerge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/centerge/32/111023_2.png) [@centerge](https://meta.discourse.org/u/centerge)\
**Post date:** [2019年五月16日 23:47 UTC](https://meta.discourse.org/t/apis-for-bookmarking-post-and-topic-and-removing-them-as-well/117981/1 "2019-05-16T23:47:02Z")

</div>

I’ve been unsuccessful in figuring out what the API calls are for the following:  
-to bookmark a post  
-to bookmark a topic  
-to remove a post from being bookmarked  
-to remove a topic from being bookmarked.

Any help you can offer on these would be appreciated.  
We are running [v2.1.0.beta1 +364]

Thank you in advanced

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年五月16日 23:50 UTC](https://meta.discourse.org/t/apis-for-bookmarking-post-and-topic-and-removing-them-as-well/117981/2 "2019-05-16T23:50:58Z")

</div>

Have you tried:

> [@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 …

I would love to improve ⏫ if there are any gaps here.

---

<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:** [2019年五月17日 04:08 UTC](https://meta.discourse.org/t/apis-for-bookmarking-post-and-topic-and-removing-them-as-well/117981/3 "2019-05-17T04:08:38Z")

</div>

You really need to upgrade.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年九月28日 07:17 UTC](https://meta.discourse.org/t/apis-for-bookmarking-post-and-topic-and-removing-them-as-well/117981/5 "2022-09-28T07:17:16Z")

</div>


