MediaWiki API help
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)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Font : MediaWiki
- Licéncia : GPL-2.0-or-later
Delete and undelete revisions.
Paramètres :
Other general parameters are available.
- type
Type of revision deletion being performed.
- Cal aquest paràmetre.
- One of the following values: 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.
- Cal aquest paràmetre.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- hide
What to hide for each revision.
- Values (separate with | or alternative): comment, content, user
- show
What to unhide for each revision.
- Values (separate with | or alternative): comment, content, user
- suppress
Whether to suppress data from administrators as well as others.
- One of the following values: no, nochange, yes
- Per defecte: nochange
- reason
Reason for the deletion or undeletion.
Tags to apply to the entry in the deletion log.
- Values (separate with | or alternative): viquirepte
- token
A "csrf" token retrieved from action=query&meta=tokens
- Cal aquest paràmetre.
Examples:
- Hide content for revision 12345 on the page Portada.
- api.php?action=revisiondelete&target=Portada&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]