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

(main | 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.

Parametry:
title

Title of the page to restore.

This parameter is required.
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.
Maximum number of values is 50 (500 for clients allowed higher limits).
fileids

IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.

Type: list of integers
Hodnoty oddělujte pomocí | nebo alternativou.
Maximum number of values is 50 (500 for clients allowed higher limits).
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: nochange, preferences, unwatch, watch
Default: preferences
token

Token typu „csrf“ získaný pomocí action=query&meta=tokens.

This parameter is required.