From MediaWiki.org
Jump to: navigation, search

Other languages:
български • ‎Deutsch • ‎English • ‎español • ‎français • ‎Հայերեն • ‎日本語 • ‎polski • ‎русский • ‎sicilianu • ‎中文
Tools clipart.png This page is part of the MediaWiki action API documentation.
MediaWiki APIsAPI:Main page

MediaWiki action API

v · d · e
MediaWiki version: 1.14


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. Patrol tokens can be obtained via action=tokens with type=patrol (MW 1.20+), or by using the following method:

Obtaining a patrol token

Patrolling changes[edit]

You can patrol changes using action=patrol. Note that this module only accepts POST requests.


  • rcid: Recentchanges ID to patrol.
  • revid: Revision ID to patrol. 1.22+
  • tags: Change tags to apply to the entry in the patrol log. 1.27+
  • token: The token obtained in the previous request. Take care to encode the + as %2B


Patrolling rcid 242005359

Possible errors[edit]

In addition to the usual stuff:

Code Info
nosuchrcid There is no change with rcid "id"
patroldisabled Patrolling is disabled on this wiki
noautopatrol You are not allowed to mark your own changes as patrolled.
Only users with the autopatrol right can do this


(main | patrol)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0+

Patrol a page or revision.


Recentchanges ID to patrol.

Type: integer

Revision ID to patrol.

Type: integer

Change tags to apply to the entry in the patrol log.

Values (separate with | or alternative):

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

This parameter is required.