Move or rename a page
move_pageMove a Wiki.js page to a new path or locale. Use the confirmation token to finalize the relocation; check page links first since existing internal links won't be rewritten.
Instructions
Moves a page to another path, another locale, or both. Internal links pointing at the old path are NOT rewritten by Wiki.js — check list_page_links first if that matters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 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.) | |
| locale | No | Locale code. Defaults to WIKIJS_LOCALE. The locale is part of a page’s identity. | |
| page_id | No | Numeric Wiki.js id. | |
| confirm_token | No | Token from this tool’s previous, unconfirmed call. Omit it to receive one. | |
| destination_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.) | |
| destination_locale | No | Locale code. Defaults to WIKIJS_LOCALE. The locale is part of a page’s identity. |