API:Review

From MediaWiki.org
Jump to: navigation, search
This page is part of the MediaWiki action API documentation.

MediaWiki action API

v · d · e

Prefix: None Required Rights: Reviewer POST Only? Yes

Review a revision via FlaggedRevs.

Parameters[edit]

  • 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 Codes[edit]

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