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. A move token can be obtained as follows:

Moving pages
Pages can be moved with action=move.

Parameters

 * from: The title of the page you want to move
 * to: The new title you want to move the page to
 * token: The token obtained in the previous request. Take care to urlencode the '+' as '%2B'.
 * reason: The reason for the move (optional)
 * movetalk: Move the talk page, if possible
 * noredirect: Don't create a redirect from the old title to the new one

Possible errors
All errors are formatted as:


 * code: nofrom
 * info: The from parameter must be set
 * code: noto
 * info: The to parameter must be set
 * code: notoken
 * info: The token parameter must be set
 * code: nosuppress
 * info: You don't have permission to suppress redirect creation
 * By default, this is limited to sysops and bots, but other wikis may have different settings
 * code: cantmove-anon
 * info: Anonymous users can't move pages
 * code: cantmove
 * info: You don't have permission to move pages
 * code: selfmove
 * info: Can't move a page to itself
 * code: immobilenamespace
 * info: You tried to move pages from or to a namespace that is protected from moving
 * code: articleexists
 * info: The destination article already exists and is not a redirect to the source article
 * code: protectedpage
 * info: You don't have permission to perform this move
 * code: protectedtitle
 * info: The destination article has been protected from creation

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