yuque_create_doc
Create a document in a Yuque repository. Specify a parent UUID to place it under a TOC node, or omit it to add to the root.
Instructions
Create a document in a repo. 传 parent_uuid 则挂到指定节点下,不传默认挂根目录。POST /repos/:id/docs. 详见 references/api/doc_api.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return raw full JSON (default false, returns trimmed fields) | |
| body | Yes | Document body content (required) | |
| slug | No | Document slug. Rule: kebab-case, lowercase, no special chars. Auto-generated if omitted. | |
| title | No | Title, defaults to 'Untitled' | |
| format | No | Content format: markdown / html / lake, defaults to markdown | |
| public | No | Visibility: 0=private, 1=public, 2=team-public, defaults to repo setting | |
| book_id | Yes | Repository ID (numeric) or namespace like group/book_slug (required) | |
| parent_uuid | No | TOC parent node UUID. 指定后新文档挂到该节点下。不传默认挂根目录。 |