> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.revvue.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.revvue.ai/_mcp/server.

# WikiWritePageInputGql

GraphQL input

Body for `jonnaWikiWritePage`. Idempotent on `(scope, namespace, path)` — calling twice updates the existing page and bumps `version`.

Reference: https://docs.revvue.ai/api-reference/knowledge-hub/types/inputs/wiki-write-page-input-gql

## Fields

- `scope` — Which bucket the page belongs to.
- `path` — Slash-delimited path. Acts as the page id within the scope (e.g. 'menu/specials.md').
- `title` — Display title of the page.
- `content` — Markdown body of the page.
- `summary` — One-line summary used in listings. Auto-derived from `content` if omitted.
- `sourceIds` — `wiki_source` UUIDs this page cites as external references.
- `frontmatter` — Arbitrary JSON metadata persisted alongside the page. Replaces prior frontmatter wholesale. Use `labels: [...]` here for free-form display labels (replaces the old top-level `tags` field).
- `expectedVersion` — Optimistic-concurrency guard. If the live page has advanced past this version, the write is refused — the caller should re-read and merge before retrying.

## Definition

```graphql
input WikiWritePageInputGql {
  scope: WikiScopeInputGql!
  path: String!
  title: String!
  content: String!
  summary: String
  sourceIds: [String!]
  frontmatter: JSON
  expectedVersion: Int
}
```