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

(main | createwikiconfigvariabledefinition)
  • 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

Create config variable.

Specific parameters:
Other general parameters are available.
variable_name

Name of the variable.

This parameter is required.
variable_type

Type of the variable.

This parameter is required.
One of the following values: array, boolean, float, hash, integer, long, string, struct, text
variable_access_level

Access level of the variable.

This parameter is required.
One of the following values: readonly, staff, user
variable_description

Description of the variable.

This parameter is required.
variable_labels

Variable labels.

token

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

This parameter is required.