API:Move

Token
To move a page, a move token is required. This token is equal to the edit token and the same for all pages, but changes at every login. Moves tokens can be obtained via action=tokens with type=move (MW 1.20+), or by using the following method:

Moving pages
Pages can be moved with action=move.

Parameters

 * : The title of the page you want to move. Cannot be used together with
 * : Page ID of the page you want to move. Cannot be used together with
 * : The new title you want to move the page to
 * : The token obtained in the previous request. Take care to urlencode the '+' as '%2B'.
 * : The reason for the move (optional)
 * : Move the talk page, if possible
 * : Move subpages, if applicable
 * : Don't create a redirect from the old title to the new one. Requires the suppressredirect right, which by default is granted only to group Bots; even admins don't have it!
 * : Add the page and the redirect to your watchlist
 * : Remove the page and the redirect from your watchlist
 * : Ignore any warnings while moving

Example
Note: In this example, all parameters are passed in a GET request just for the sake of simplicity. However, action=move requires POST requests; GET requests will cause an error.

Possible errors
All errors are formatted as:

NOTE: If moving the page itself succeeded, but moving the talk page failed, the relevant error will be returned in the  and   fields.