API:Assert

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

Quick overview:

v · d · e
MediaWiki version: 1.23

To make sure your bot doesn't edit while logged out, the API provides an assert parameter which you can add to any request.

  • assert=user: Checks that your account is logged in
  • assert=bot: Checks that your account has the 'bot' user right

If the assertion fails, error codes of assertuserfailed or assertbotfailed will be returned.