Create a page
create_pageCreate a new Wiki.js page with a unique path, title, and content. Choose the editor format (markdown, ckeditor, code, asciidoc) to match the content type.
Instructions
Creates a page. The path must not already exist in this locale — Wiki.js answers PageDuplicateCreate otherwise, and update_page is what changes an existing one. The editor decides how content is interpreted, so markdown source needs editor="markdown".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Page path without a leading slash and without the locale prefix, e.g. "docs/setup". A browser URL looks like /en/docs/setup — drop the "en/", it is the locale argument. (Not enforced: "ci/", "db/" and "qa/" are perfectly good first segments that happen to look like locale codes.) | |
| tags | No | ||
| title | Yes | Page title as shown in the wiki. | |
| editor | No | Storage format. "markdown" for markdown source, "ckeditor" for rich-text HTML, "code" for raw HTML, "asciidoc" for AsciiDoc. | |
| locale | No | Locale code. Defaults to WIKIJS_LOCALE. The locale is part of a page’s identity. | |
| content | Yes | Full page body, in the page’s content format. | |
| is_private | No | ||
| description | No | Short page description, shown in listings and search results. | |
| is_published | No | Publish immediately (default true). False creates a draft. |