MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=revisiondelete
(main | revisiondelete)
- Voor deze module zijn leesrechten nodig.
 - Voor deze module zijn schrijfrechten nodig.
 - This module only accepts POST requests.
 - Bron: MediaWiki
 - Licentie: GPL-2.0-or-later
 
Versies verwijderen of terugplaatsen.
Parameters:
- type
 Type of revision deletion being performed.
- Deze parameter is vereist.
 - Een van de volgende waarden: 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.
- Deze parameter is vereist.
 - Separate values with | or alternative.
 - Maximumaantal waarden is 50 (of 500 voor cliƫnten waaraan hogere limieten zijn toegestaan).
 - hide
 What to hide for each revision.
- Waarden (gescheiden met | of alternatief): comment, content, user
 - show
 What to unhide for each revision.
- Waarden (gescheiden met | of alternatief): comment, content, user
 - suppress
 Whether to suppress data from administrators as well as others.
- Een van de volgende waarden: no, nochange, yes
 - Standaard: nochange
 - reason
 Reason for the deletion or undeletion.
- tags
 Tags to apply to the entry in the deletion log.
- Waarden (gescheiden met | of alternatief):
 - token
 A "csrf" token retrieved from action=query&meta=tokens
- Deze parameter is vereist.
 
Voorbeelden:
- Hide content for revision 12345 on the page Main Page.
 - api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC [open in de zandbak]
 - Hide all data on log entry 67890 with the reason BLP violation.
 - api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC [open in de zandbak]