笔记创建
POST
/api/open/api/v1/note/create
OpenAPI笔记
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{API-KEY}}
Body 参数application/json
body
allOf {1}
笔记内容
object (NoteAtom)
笔记-原子节点信息
settings
object
笔记设置
autoPublish
boolean
自动发布
tags
array[string]
可选
标签
标签列表 <= 10 个
标签名长度 <= 30 个字符
示例
{
"body": {
"type": "string",
"text": "string",
"content": [
{}
],
"marks": [
{}
],
"attrs": {
"property1": "string",
"property2": "string"
}
},
"settings": {
"autoPublish": true,
"tags": [
"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/create' \
--header 'Authorization: Bearer {{API-KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"type": "string",
"text": "string",
"content": [
{}
],
"marks": [
{}
],
"attrs": {
"property1": "string",
"property2": "string"
}
},
"settings": {
"autoPublish": true,
"tags": [
"string"
]
}
}'
返回响应
🟢200成功
application/json
Body
noteId
string
笔记ID
示例
{
"noteId": "string"
}
🔴500服务器错误