Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/API
action=undelete
- Tento modul vyžaduje oprávnění ke čtení.
 - Tento modul vyžaduje oprávnění k zápisu.
 - Tento modul přijímá pouze požadavky POST.
 - Zdroj: MediaWiki
 - Licence: GPL-2.0-or-later
 
Restore revisions of a deleted page.
A list of deleted revisions (including timestamps) can be retrieved through prop=deletedrevisions, and a list of deleted file IDs can be retrieved through list=filearchive.
- title
 Title of the page to restore.
- Tento parametr je povinný.
 - reason
 Reason for restoring.
- Implicitní hodnota: (prázdné)
 - tags
 Change tags to apply to the entry in the deletion log.
- Hodnoty (oddělené | nebo alternativou.):
 - timestamps
 Timestamps of the revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Type: list of timestamps (allowed formats)
 - Hodnoty oddělujte pomocí | nebo alternativou. Maximální počet hodnot je 50 (pro boty 500).
 - fileids
 IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Typ: seznam celých čísel
 - Hodnoty oddělujte pomocí | nebo alternativou. Maximální počet hodnot je 50 (pro boty 500).
 - watchlist
 Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Jedna z následujících hodnot: watch, unwatch, preferences, nochange
 - Implicitní hodnota: preferences
 - token
 Token typu „csrf“ získaný pomocí action=query&meta=tokens.
- Tento parametr je povinný.
 
- Undelete page Main Page.
 - api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page [otevřít v pískovišti]
 - Undelete two revisions of page Main Page.
 - api.php?action=undelete&title=Main%20Page&token=123ABC×tamps=2007-07-03T22:00:45Z|2007-07-02T19:48:56Z [otevřít v pískovišti]