墨问 API
  1. 笔记
墨问 API
  • 说明
    • 1. 概述
    • 2. NoteAtom 的结构说明
    • 3. 错误码
    • 4. ChangeLog
  • 授权
    • APIKey 重置
      POST
  • 笔记
    • 笔记创建
      POST
    • 笔记编辑
      POST
    • 笔记设置
      POST
  1. 笔记

笔记编辑

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
OK
Body
noteId
string 
笔记ID
可选
示例
{
    "noteId": "string"
}
🔴500服务器错误
上一页
笔记创建
下一页
笔记设置
Built with