删除一条批注
await mn.api('/notes/' + noteid + '/comments/2/delete', {
method: 'POST',
body: { expectedPrefix: '工整的推导过程', confirm: true }
});{
"index": 3,
"noteid": "D3085422-2CB9-4B68-A78D-DEE351CF9C38",
"bridgeApiVersion": "0.91",
"remainingComments": 2,
"action": "delete"
}卡片与摘录
删除批注
删除第 index 条批注。序号从 1 起。expectedPrefix 是该条批注当前内容的前 32 个字,
读完到写之间内容已变则返回 409 COMMENT_CHANGED。
POST
/
notes
/
{noteid}
/
comments
/
{index}
/
delete
删除一条批注
await mn.api('/notes/' + noteid + '/comments/2/delete', {
method: 'POST',
body: { expectedPrefix: '工整的推导过程', confirm: true }
});{
"index": 3,
"noteid": "D3085422-2CB9-4B68-A78D-DEE351CF9C38",
"bridgeApiVersion": "0.91",
"remainingComments": 2,
"action": "delete"
}路径参数
卡片的 noteid。取自卡片命令响应的 noteid、POST /notes/batch-get 响应里 items[].noteid,或 GET /ui-state 的 state.focusnoteid。
批注序号,从 1 起。序号 0 是卡片自身正文,指向该序号的请求返回 422。
必填范围:
x >= 1请求体
application/json