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=change-rating

(main | change-rating)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: ArticleRating
  • License: GPL-2.0-or-later

Change a page's rating.

Specific parameters:
Other general parameters are available.
title

Title of the page to rate. Cannot be used together with pageid.

pageid

Page ID of the page to rate. Cannot be used together with title.

Type: integer
reason

Reason for the rating change, will be logged to Special:Log/ratings.

rating-to

New rating for the page (a two-character codename as defined in MediaWiki:Are-ratings).

This parameter is required.
token

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

This parameter is required.
Example:
Change the rating of a page named "71040 The Disney Castle" to "FA" with the reason "Meets featured article criteria, as per the vote"
api.php?action=change-rating&title=71040_The_Disney_Castle&rating-to=FA&reason=Meets featured article criteria, as per the vote [open in sandbox]