Помощ за МедияУики API

Това е автоматично генерирана страница за документация на МедияУики API.

Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=revisiondelete

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

Delete and undelete revisions.

Parameters:
type

Type of revision deletion being performed.

This parameter is required.
Една от следните стойности: archive, filearchive, logging, oldimage, revision
target

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

ids

Identifiers for the revisions to be deleted.

This parameter is required.
За разделител на стойностите използвайте | или алтернативния разделител.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
hide

What to hide for each revision.

Стойности (разделени с | или алтернативния разделител): comment, content, user
show

What to unhide for each revision.

Стойности (разделени с | или алтернативния разделител): comment, content, user
suppress

Whether to suppress data from administrators as well as others.

Една от следните стойности: no, nochange, yes
Default: nochange
reason

Reason for the deletion or undeletion.

tags

Tags to apply to the entry in the deletion log.

Стойности (разделени с | или алтернативния разделител):
token

Маркер „csrf“, получен от action=query&meta=tokens

This parameter is required.