Extension:FlaggedRevs/API
This page is part of the MediaWiki Action API documentation. |
Prefix: None Required Rights: Reviewer POST Only? Yes
Review a revision via Extension:FlaggedRevs.
ParametersEdit
- comment – Comment for the review (optional). Type: string
- flag_accuracy – Set the flag ''accuracy'' to the specified value.
- Type: one of
0
,1
,2
,3
- flag_depth – Set the flag ''depth'' to the specified value.
- Type: one of
0
,1
,2
,3
- flag_style – Set the flag ''style'' to the specified value.
- Type: one of
0
,1
,2
,3
- revid – The revision ID for which to set the flags. Type: string
- token – An csrf token retrieved through API:Tokens. Type: string
- unapprove – If set, revision will be unapproved rather than approved.. Type: bool
Errors CodesEdit
- badtoken – Invalid token.
- blocked – You have been blocked from editing.
- mixedapproval – No flags can be set to zero when accepting a revision..
- mustbeposted – The review module requires a POST request.
- noapiwrite – Editing of this wiki through the API is disabled. Make sure the $wgEnableWriteAPI=true; statement is included in the wiki's LocalSettings.php file.
- notarget – Provided revision or page can not be found..
- notoken – The token parameter must be set.
- notreviewable – Provided page is not reviewable..
- permissiondenied – Insufficient rights to set the specified flags..
- permissiondenied – Permission denied.
- readapidenied – You need read permission to use this module.
- writeapidenied – You're not allowed to edit this wiki through the API.