思源笔记社区正在搭建中,现邀您共建
SiYuan Community is under construction. Join us to co-build.
Authorization: Bearer ********************{
"notebook": "your_notebook_id",
"path": "/path/xxx.sy",
"title": "今天的内容",
"md": "# 标题\n内容正文",
"sorts": [
"path1",
"path2"
],
"app": "your_app_id",
"callback": "some_callback"
}curl --location --request POST 'http://127.0.0.1:6806/api/filetree/createDoc' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"notebook": "your_notebook_id",
"path": "/path/xxx.sy",
"title": "今天的内容",
"md": "# 标题\n内容正文",
"sorts": [
"path1",
"path2"
],
"app": "your_app_id",
"callback": "some_callback"
}'{
"code": 0,
"msg": "",
"data": {
"id": "新文档的根节点 ID"
}
}