我在文档中没有找到这些内容,但我可以:
- 在调用 Discourse API 创建新主题时,选择主题标签吗?
- 使用 Discourse API 回复已创建的主题吗?
谢谢。
我在文档中没有找到这些内容,但我可以:
谢谢。
在 HTTP POST 时将 tags 设置为字符串数组。例如:
{
title: "主题标题",
raw: "原始内容",
category: 1,
tags: ["标签1", "标签2"]
}
创建主题时使用的 /posts.json 端点同样可用于回复,只需设置 topic_id。更多信息请参见 Discourse API Docs
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.