mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Kernel API transferBlockRef https://github.com/siyuan-note/siyuan/issues/8522
This commit is contained in:
parent
4153d22acb
commit
eda8da1bbe
4 changed files with 67 additions and 3 deletions
28
API_zh_CN.md
28
API_zh_CN.md
|
|
@ -30,6 +30,7 @@
|
|||
* [移动块](#移动块)
|
||||
* [获取块 kramdown 源码](#获取块-kramdown-源码)
|
||||
* [获取子块](#获取子块)
|
||||
* [转移块引用](#转移块引用)
|
||||
* [属性](#属性)
|
||||
* [设置块属性](#设置块属性)
|
||||
* [获取块属性](#获取块属性)
|
||||
|
|
@ -808,6 +809,33 @@
|
|||
}
|
||||
```
|
||||
|
||||
### 转移块引用
|
||||
|
||||
* `/api/block/transferBlockRef`
|
||||
* 参数
|
||||
|
||||
```json
|
||||
{
|
||||
"fromID": "20230612160235-mv6rrh1",
|
||||
"toID": "20230613093045-uwcomng",
|
||||
"refIDs": ["20230613092230-cpyimmd"]
|
||||
}
|
||||
```
|
||||
|
||||
* `fromID`:定义块 ID
|
||||
* `toID`:目标块 ID
|
||||
* `refIDs`:指向定义块 ID 的引用所在块 ID,可选,如果不指定,所有指向定义块 ID 的引用块 ID 都会被转移
|
||||
* 返回值
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## 属性
|
||||
|
||||
### 设置块属性
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue