MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=revisiondelete

(main | revisiondelete)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • Licenza: GPL-2.0+

Delete and undelete revisions.

Parametri:
type

Type of revision deletion being performed.

Questo parametro è obbligatorio.
One of the following values: revision, archive, oldimage, filearchive, logging
target

Page title for the revision deletion, if required for the type.

ids

Identifiers for the revisions to be deleted.

Questo parametro è obbligatorio.
Separate values with |. Il numero massimo di valori è 50 (500 per i bot).
hide

What to hide for each revision.

Values (separate with |): content, comment, user
show

What to unhide for each revision.

Values (separate with |): content, comment, user
suppress

Whether to suppress data from administrators as well as others.

One of the following values: yes, no, nochange
Predefinito: nochange
reason

Reason for the deletion or undeletion.

token

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

Questo parametro è obbligatorio.