API:Mergehistory

Token
To merge a page, an edit token is required.

Merging pages
Pages can be merged with action=mergehistory.

Parameters

 * : Title of the page from which history will be merged. Cannot be used together with
 * : Page ID of the page from which history will be merged. Cannot be used together with
 * : Title of the page to which history will be merged. Cannot be used together with
 * : Page ID of the page to which history will be merged. Cannot be used together with
 * : Timestamp up to which revisions will be moved from the source page's history to the destination page's history. If omitted, the entire page history of the source page will be merged into the destination page.
 * : Reason for the history merge (optional)
 * : A csrf token

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

Possible errors
All errors are formatted as: