Ajuda da API MediaWiki

Esta é uma página de documentação da API MediaWiki gerada automaticamente.

Documentação e exemplos: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=change-rating

(main | change-rating)
  • Este módulo requer direitos de leitura.
  • Este módulo requer direitos de gravação.
  • Este módulo aceita apenas pedidos POST.
  • Fonte: ArticleRating
  • Licença: GPL-2.0-or-later

Change a page's rating.

Parâmetros:
Estão disponíveis outros parâmetros gerais.
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.

Tipo: inteiro
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).

Este parâmetro é obrigatório.
token

Um token "csrf" token recuperado de action=query&meta=tokens

Este parâmetro é obrigatório.
Exemplo:
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 [abrir na página de testes]