Extension:FlaggedRevs/API

Prefix: None Required Rights: Reviewer POST Only? Yes Review a revision via FlaggedRevs.

Parameters

 * 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</tt>, 1</tt>, 2</tt>, 3</tt>


 * revid – The revision ID for which to set the flags . Type: string
 * token – An edit token retrieved through prop=info . Type: string
 * unapprove – If set, revision will be unapproved rather than approved. . Type: bool

Errors Codes

 * 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.