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=markwikiprotected

(main | markwikiprotected)
  • This module is internal or unstable. Its operation may change without notice.
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: WikiConfig
  • License: GPL-2.0-or-later

Mark given wiki as protected so it's not possible to close it.

Specific parameters:
Other general parameters are available.
wiki_id

The ID of the wiki to mark as protected.

This parameter is required.
Type: integer
protect
⧼apihelp-markwikiprotected-param-protect⧽
Type: boolean (details)
reason

The reason for protecting the wiki.

token

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

This parameter is required.