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)
- Denna modul kräver läsrättigheter.
- Denna modul kräver skrivrättigheter.
- Denna modul accepterar endast POST-begäranden.
- Source: MediaWiki
- License: GPL-2.0+
Delete and undelete revisions.
Parametrar:
- type
Type of revision deletion being performed.
- Denna parameter är obligatorisk.
- Ett av följande värden: 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.
- Denna parameter är obligatorisk.
- Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
- hide
What to hide for each revision.
- Värden (separerade med | eller alternativ): content, comment, user
- show
What to unhide for each revision.
- Värden (separerade med | eller alternativ): content, comment, user
- suppress
Whether to suppress data from administrators as well as others.
- Ett av följande värden: yes, no, nochange
- Default: nochange
- reason
Reason for the deletion or undeletion.
- tags
Tags to apply to the entry in the deletion log.
- Värden (separerade med | eller alternativ):
- token
A "csrf" token retrieved from action=query&meta=tokens
- Denna parameter är obligatorisk.
Examples:
- 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 sandbox]
- 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 sandbox]