MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=undelete

(main | undelete)
  • Denne modulen krever lesetilgang.
  • Denne modulen krever skrivetilgang.
  • Denne modulen aksepterer bare POST forespørsler.
  • Kilde: MediaWiki
  • Lisens: 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.

Parametre:
title

Title of the page to restore.

Denne parameteren er påkrevd.
reason

Reason for restoring.

Standard: (tom)
tags

Change tags to apply to the entry in the deletion log.

Verdier (separer med | eller alternativ):
timestamps

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

Type: liste over tidsstempler (tillatte formater)
Separer verdier med | eller alternativ. Maksimalt antall verdier er 50 (500 for botter)
fileids

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

Type: liste over heltall
Separer verdier med | eller alternativ. Maksimalt antall verdier er 50 (500 for botter)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

Én av følgende verdier: watch, unwatch, preferences, nochange
Standard: preferences
token

A "csrf" token retrieved from action=query&meta=tokens

Denne parameteren er påkrevd.