笔记编辑
POST
/api/open/api/v1/note/edit
OpenAPI笔记
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{API-KEY}}
Body 参数application/json
noteId
string
笔记ID
body
allOf {1}
笔记内容
object (NoteAtom)
笔记-原子节点信息
示例
{
"noteId": "string",
"body": {
"type": "string",
"text": "string",
"content": [
{}
],
"marks": [
{}
],
"attrs": {
"property1": "string",
"property2": "string"
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/open/api/v1/note/edit' \
--header 'Authorization: Bearer {{API-KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"noteId": "string",
"body": {
"type": "string",
"text": "string",
"content": [
{}
],
"marks": [
{}
],
"attrs": {
"property1": "string",
"property2": "string"
}
}
}'
返回响应
🟢200成功
application/json
Body
noteId
string
笔记ID
示例
{
"noteId": "string"
}
🔴500服务器错误