mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 03:06:10 +01:00
🧑💻 Add a kernel API /api/filetree/renameDocByID https://github.com/siyuan-note/siyuan/issues/13105
This commit is contained in:
parent
3922e48404
commit
7b9163d480
4 changed files with 83 additions and 1 deletions
27
API.md
27
API.md
|
|
@ -351,12 +351,37 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
|||
{
|
||||
"notebook": "20210831090520-7dvbdv0",
|
||||
"path": "/20210902210113-0avi12f.sy",
|
||||
"title": "Document new title"
|
||||
"title": "New document title"
|
||||
}
|
||||
```
|
||||
|
||||
* `notebook`: Notebook ID
|
||||
* `path`: Document path
|
||||
* `title`: New document title
|
||||
* Return value
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
Rename a document by `id`:
|
||||
|
||||
* `/api/filetree/renameDocByID`
|
||||
* Parameters
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "20210902210113-0avi12f",
|
||||
"title": "New document title"
|
||||
}
|
||||
```
|
||||
|
||||
* `id`: Document ID
|
||||
* `title`: New document title
|
||||
* Return value
|
||||
|
||||
```json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue