MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=move
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Move a page.
- from
Title of the page to rename. Cannot be used together with fromid.
- fromid
Page ID of the page to rename. Cannot be used together with from.
- Type: integer
- to
Title to rename the page to.
- This parameter is required.
- reason
Reason for the rename.
- Default: (empty)
- movetalk
Rename the talk page, if it exists.
- Type: boolean (details)
- movesubpages
Rename subpages, if applicable.
- Type: boolean (details)
- noredirect
Don't create a redirect.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.
- One of the following values: nochange, preferences, unwatch, watch
- Default: preferences
- ignorewarnings
Ignore any warnings.
- Type: boolean (details)
Change tags to apply to the entry in the move log and to the null revision on the destination page.
- Values (separate with | or alternative): AFCH, AWB, Addition of protection template to non-protected page, AntiVandal script, CVPI, Deputy, HotCat, JWB, Newcomer task, New user adding protection template, ProveIt edit, RedWarn, Ultraviolet, WPCleaner, WikiLoop Battlefield, WikiShield script, bot trial, changing time or duration, convenient-discussions, editProtectedHelper, excessive whitespace, fixed lint errors, huggle, invalid-timedtext-edit, large non-free file, massmove, moveToDraft, new user moving page out of userspace, ooze, pageswap, possible birth or death date change, possible formatting issues, pronoun-change, rapid date format changes, self-published-blog, self-published source, shortdesc helper, talk banner shell conversion, twinkle
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
- Move Badtitle to Goodtitle without leaving a redirect.
- api.php?action=move&from=Badtitle&to=Goodtitle&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect= [open in sandbox]