mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 07:30:49 +08:00
🎨 支持批量移动文档
This commit is contained in:
parent
ddf12f589a
commit
b321185248
12
API.md
12
API.md
@ -16,7 +16,7 @@
|
|||||||
* [Create a document with Markdown](#Create-a-document-with-Markdown)
|
* [Create a document with Markdown](#Create-a-document-with-Markdown)
|
||||||
* [Rename a document](#Rename-a-document)
|
* [Rename a document](#Rename-a-document)
|
||||||
* [Remove a document](#Remove-a-document)
|
* [Remove a document](#Remove-a-document)
|
||||||
* [Move a document](#Move-a-document)
|
* [Move documents](#Move-documents)
|
||||||
* [Get human-readable path based on path](#Get-human-readable-path-based-on-path)
|
* [Get human-readable path based on path](#Get-human-readable-path-based-on-path)
|
||||||
* [Get human-readable path based on ID](#Get-human-readable-path-based-on-ID)
|
* [Get human-readable path based on ID](#Get-human-readable-path-based-on-ID)
|
||||||
* [Assets](#Assets)
|
* [Assets](#Assets)
|
||||||
@ -378,22 +378,20 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Move a document
|
### Move documents
|
||||||
|
|
||||||
* `/api/filetree/moveDoc`
|
* `/api/filetree/moveDocs`
|
||||||
* Parameters
|
* Parameters
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"fromNotebook": "20210831090520-7dvbdv0",
|
"fromPaths": ["/20210917220056-yxtyl7i.sy"],
|
||||||
"fromPath": "/20210917220056-yxtyl7i.sy",
|
|
||||||
"toNotebook": "20210817205410-2kvfpfn",
|
"toNotebook": "20210817205410-2kvfpfn",
|
||||||
"toPath": "/"
|
"toPath": "/"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
* `fromNotebook`: Source notebook ID
|
* `fromPaths`: Source paths
|
||||||
* `fromPath`: Source path
|
|
||||||
* `toNotebook`: Target notebook ID
|
* `toNotebook`: Target notebook ID
|
||||||
* `toPath`: Target path
|
* `toPath`: Target path
|
||||||
* Return value
|
* Return value
|
||||||
|
@ -377,20 +377,18 @@
|
|||||||
|
|
||||||
### 移动文档
|
### 移动文档
|
||||||
|
|
||||||
* `/api/filetree/moveDoc`
|
* `/api/filetree/moveDocs`
|
||||||
* 参数
|
* 参数
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"fromNotebook": "20210831090520-7dvbdv0",
|
"fromPaths": ["/20210917220056-yxtyl7i.sy"],
|
||||||
"fromPath": "/20210917220056-yxtyl7i.sy",
|
|
||||||
"toNotebook": "20210817205410-2kvfpfn",
|
"toNotebook": "20210817205410-2kvfpfn",
|
||||||
"toPath": "/"
|
"toPath": "/"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
* `fromNotebook`:源笔记本 ID
|
* `fromPaths`:源路径
|
||||||
* `fromPath`:源路径
|
|
||||||
* `toNotebook`:目标笔记本 ID
|
* `toNotebook`:目标笔记本 ID
|
||||||
* `toPath`:目标路径
|
* `toPath`:目标路径
|
||||||
* 返回值
|
* 返回值
|
||||||
|
Loading…
Reference in New Issue
Block a user