create_doc
Create a document in a project and return its metadata and version, enabling edits without a prior read. Nest via parent_id; slug must be one segment without '/'.
Instructions
Create a document in a project. Returns its metadata and version — the version is what update_doc takes as base_version, so a create followed by an edit needs no read in between. The body you sent is not echoed back. slug is ONE path segment and must not contain '/' (the request is refused with 400): to put a document in a folder, create or find the parent first and pass parent_id — the document is then reachable as /.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Markdown body. | |
| slug | No | One URL segment, derived from the title if omitted. '/' is not allowed (400) — nest with parent_id instead. | |
| title | Yes | Document title. | |
| position | No | Sort position among siblings. | |
| parent_id | No | Parent document UUID, to nest this one under it. | |
| project_id | Yes | Project UUID. |