This commit is contained in:
Daniel 2023-06-13 09:52:41 +08:00
parent 4153d22acb
commit eda8da1bbe
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 67 additions and 3 deletions

View file

@ -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
}
```
## 属性
### 设置块属性