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=downtimevote
(main | downtimevote)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MFInteractiveMapSync
- License: MIT
Record the logged-in user's single Downtime vote (interactive map, Track O).
Specific parameters:
Other general parameters are available.
- event_id
The Downtime event's short code (e.g. E2).
- This parameter is required.
- flag_id
The chosen flag's id.
- This parameter is required.
- option_id
The chosen option's id within that flag.
- This parameter is required.
- nation
The flag's nation/region (for per-region tallies).
- change
Set to change an existing vote to a different flag/option (subject to a cooldown).
- Type: boolean (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Example:
- Cast a vote for option 1 of the Broken Span flag in event E2.
- api.php?action=downtimevote&event_id=E2&flag_id=the-broken-span&option_id=1&nation=valdraeth&token=123ABC [open in sandbox]