MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=review

(main | review)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.

Review a revision by approving or de-approving it.

Параметры:
revid

The revision ID for which to set the flags.

token

A "csrf" token retrieved from action=query&meta=tokens

Этот параметр является обязательным.
comment

Comment for the review.

unapprove

If set, revision will be unapproved rather than approved.

flag_accuracy

Set the flag accuracy to the specified value.

One value: 0, 1, 2, 3
По умолчанию: 1
flag_depth

Set the flag depth to the specified value.

One value: 0, 1, 2, 3
По умолчанию: 1
flag_style

Set the flag style to the specified value.

One value: 0, 1, 2, 3
По умолчанию: 1
Пример:
Approve revision 12345 with comment "Ok"
api.php?action=review&revid=12345&token=123AB&flag_accuracy=1&comment=Ok