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=strikevote
(main | strikevote)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: SecurePoll
- License: GPL-2.0-or-later
Allows admins to strike or unstrike a vote.
Specific parameters:
Other general parameters are available.
- option
Which action to take: strike or unstrike a vote.
- strike
- Strike a vote (remove it from the count).
- unstrike
- Unstrike a vote (restore it to the count).
- This parameter is required.
- One of the following values: strike، unstrike
- reason
The reason for striking or unstriking the vote.
- This parameter is required.
- voteid
The ID of the vote to be struck or unstruck.
- This parameter is required.
- Type: integer
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- Strike vote 1, giving the reason duplication.
- api.php?action=strikevote&option=strike&reason=duplication&voteid=1&token=123ABC [open in sandbox]
- Unstrike vote 1, giving the reason mistake.
- api.php?action=strikevote&option=unstrike&reason=mistake&voteid=1&token=123ABC [open in sandbox]