MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=undelete
- Este módulo requiere permisos de lectura.
 - Este módulo requiere permisos de escritura.
 - Este módulo solo acepta solicitudes POST.
 - Fuente: MediaWiki
 - Licencia: GPL-2.0+
 
Restore revisions of a deleted page.
A list of deleted revisions (including timestamps) can be retrieved through list=deletedrevs, and a list of deleted file IDs can be retrieved through list=filearchive.
- title
 Title of the page to restore.
- Este parámetro es obligatorio.
 - reason
 Motivo de la restauración.
- Predeterminado: (vacío)
 - tags
 Change tags to apply to the entry in the deletion log.
- Valores (separados por |):
 - timestamps
 Timestamps of the revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Tipo: lista de timestamps (formatos permitidos)
 - Separar los valores con |. El número máximo de los valores es 50 (500 para los bots).
 - fileids
 IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Tipo: lista de enteros
 - Separar los valores con |. El número máximo de los valores es 50 (500 para los bots).
 - watchlist
 Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Uno de los siguientes valores: watch, unwatch, preferences, nochange
 - Predeterminado: preferences
 - token
 A "csrf" token retrieved from action=query&meta=tokens
- Este parámetro es obligatorio.
 
- Undelete page Main Page.
 - api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page [open in sandbox]
 - Restaurar dos revisiones de la página Main Page.
 - api.php?action=undelete&title=Main%20Page&token=123ABC×tamps=2007-07-03T22:00:45Z|2007-07-02T19:48:56Z [open in sandbox]