update_doc
Modify existing documents in Yuque by updating titles, content, or permissions using specified document IDs and namespaces.
Instructions
更新语雀中已存在的文档,可以修改标题、内容或权限设置
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accessToken | No | 用于认证 API 请求的令牌 | |
body | No | 文档的新内容,支持Markdown格式 | |
format | No | 内容格式,可选值:markdown、html、lake | |
id | Yes | 要更新的文档ID | |
namespace | Yes | 知识库的命名空间,格式为 user/repo | |
public | No | 文档的公开状态,0(私密)、1(公开)、2(企业内公开) | |
slug | No | 文档的新短链接名称 | |
title | No | 文档的新标题 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accessToken": {
"description": "用于认证 API 请求的令牌",
"type": "string"
},
"body": {
"description": "文档的新内容,支持Markdown格式",
"type": "string"
},
"format": {
"description": "内容格式,可选值:markdown、html、lake",
"type": "string"
},
"id": {
"description": "要更新的文档ID",
"type": "number"
},
"namespace": {
"description": "知识库的命名空间,格式为 user/repo",
"type": "string"
},
"public": {
"description": "文档的公开状态,0(私密)、1(公开)、2(企业内公开)",
"type": "number"
},
"slug": {
"description": "文档的新短链接名称",
"type": "string"
},
"title": {
"description": "文档的新标题",
"type": "string"
}
},
"required": [
"namespace",
"id"
],
"type": "object"
}