笔记设置
POST
/api/open/api/v1/note/set
OpenApi
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{API-KEY}}
Body 参数application/json
noteId
string
笔记ID
section
integer
可选
1
笔记隐私,设置此类别时,需要设置 settings.privacy
settings
object
设置项
privacy
object
笔记隐私设置
示例
{
"noteId": "string",
"section": 0,
"settings": {
"privacy": {
"type": "string",
"rule": {
"noShare": true,
"expireAt": "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/set' \
--header 'Authorization: Bearer {{API-KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"noteId": "string",
"section": 0,
"settings": {
"privacy": {
"type": "string",
"rule": {
"noShare": true,
"expireAt": "string"
}
}
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
🔴500服务器错误