Skip to main content
GET
获取标签树与直接关联的卡片

路径参数

topicid
string
必填

学习集的 topicid。取自 GET /ui-state 的 state.topicid、GET /library/study-sets,或 GET /writing/context 响应里的 window.topicid。

查询参数

withNotes
enum<integer>

带 withNotes=1 时,一并返回每个标签下直接存有该条完整路径的卡片 id。

可用选项:
1

响应

200 - application/json

标签树。卡片 id 只在扁平的 nodes 上。

整个学习集的标签。nodes 是扁平的,tree 是嵌套的;卡片 id 只出现在扁平的 nodes 上。

bridgeApiVersion
string
studySetId
string
title
string
storedHashtagCount
number

实际存储的标签数。

taggedCardCount
number
hashtags
string[]
nodes
object[]
tree
object[]
noteIdsTruncated
boolean

为真表示卡片 id 已被截断,数量上限见 noteIdLimit。

noteIdLimit
number

卡片 id 的数量上限。