API:Patrol

From MediaWiki.org
Jump to: navigation, search
Tools clipart.png This page is part of the MediaWiki API documentation.
Language: English  • Deutsch
MediaWiki API

Quick overview:

v · d · e
MediaWiki version: 1.14

Contents

Token [edit]

To patrol a request, a patrol token is required. Since MediaWiki 1.17, the patrol token has no longer been the same as the edit token. The patrol token is the same for all pages, but changes at every login. A patrol token can be obtained as follows: Obtaining a patrol token

Patrolling changes [edit]

You can patrol changes using action=patrol.

Parameters [edit]

  • rcid: Recentchanges ID to patrol
  • token: The token obtained in the previous request. Take care to encode the + as %2B

Example [edit]

Patrolling rcid 242005359

Possible errors [edit]

In addition to the usual stuff:

  • code: nosuchrcid
    • info: There is no change with rcid ``id''
  • code: patroldisabled
    • info: Patrolling is disabled on this wiki
  • code: noautopatrol
    • info: You don't have permission to patrol your own changes
      • Only users with the autopatrol right can do this