我可以在 Discourse API 中选择标签/回复吗?

我在文档中没有找到这些内容,但我可以:

  1. 在调用 Discourse API 创建新主题时,选择主题标签吗?
  2. 使用 Discourse API 回复已创建的主题吗?

谢谢。

在 HTTP POST 时将 tags 设置为字符串数组。例如:

{
  title: "主题标题",
  raw: "原始内容",
  category: 1,
  tags: ["标签1", "标签2"]
}

创建主题时使用的 /posts.json 端点同样可用于回复,只需设置 topic_id。更多信息请参见 Discourse API Docs

3 个赞

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