API:Undelete

POST request to restore the revisions of a deleted page.

Example
Undeleting the revisions of a page is a multi-step process:   Log in using one of the methods described in .   Get a. This token is the same for all pages but changes at every login.

  Send a POST request with the CSRF token in order to undelete.  

The sample code below covers the third step in detail.

Sample code
undelete.py

Possible errors
In addition to :

Parameter history

 * v1.25: Introduced  
 * v1.24: Introduced  
 * v1.16: Introduced  

Additional notes

 * This module cannot be used as a.


 * This module requires <tvar|1> </> rights.


 * For MediaWiki 1.19 and earlier, you can obtain an undelete token through <tvar|1></>.


 * For MediaWiki 1.20-1.23, you can obtain tokens through <tvar|1></>.


 * Timestamps of deleted revisions can be obtained through <tvar|1></>, <tvar|2></> or <tvar|3></>.


 * Pages that have been deleted or restored are logged at <tvar|1>Special:Log/delete</>.