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=approve
(main | approve)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: Approved Revs
- License: GPL-2.0-or-later
Review a revision by approving or de-approving it.
Parameters:
- revid
The revision ID for which to approve.
- This parameter is required.
- Type: integer
- unapprove
If set, revision will be unapproved rather than approved.
- Type: boolean (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- Approve Revision 12345
- api.php?action=approve&revid=12345 [open in sandbox]
- Unapprove Revision 12345
- api.php?action=approve&revid=12345&unapprove=1 [open in sandbox]