Ajuda API da MediaWiki

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
  • Licença: GPL-2.0+

Delete and undelete revisions.

Parâmetros:
type

Type of revision deletion being performed.

Este parâmetro é obrigatório.
Um dos seguintes valores: 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.

Este parâmetro é obrigatório.
Separe os valores com |. Maximum number of values is 50 (500 for bots).
hide

What to hide for each revision.

Valores (separar com |): content, comment, user
show

What to unhide for each revision.

Valores (separar com |): content, comment, user
suppress

Whether to suppress data from administrators as well as others.

Um dos seguintes valores: yes, no, nochange
Padrão: nochange
reason

Reason for the deletion or undeletion.

token

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

Este parâmetro é obrigatório.