# 如何通过帖子 API 端点添加标签

**URL:** <https://meta.discourse.org/t/how-do-i-add-tags-via-the-post-api-endpoint/154418>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2020 年6 月 10 日 14:28 UTC](https://meta.discourse.org/t/how-do-i-add-tags-via-the-post-api-endpoint/154418 "2020-06-10T14:28:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![Ghazal\_Taimur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghazal_taimur/32/151076_2.png) [@Ghazal\_Taimur](https://meta.discourse.org/u/Ghazal_Taimur)\
发布日期： [2020 年6 月 10 日 21:41 UTC](https://meta.discourse.org/t/how-do-i-add-tags-via-the-post-api-endpoint/154418/4 "2020-06-10T21:41:17Z")

</div>

@Faizan_Zahid 我已经解决了。试试这种标签语法：

`"tags" : ["test-tag"]`

对我有效。

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-add-tags-via-the-post-api-endpoint/154418)._
