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=namespacemanager
(main | namespacemanager)
- This module requires read rights.
- This module only accepts POST requests.
- Source: NamespaceManager
- License: GPL-2.0-only
Reads or atomically replaces NamespaceManager definitions.
Specific parameters:
Other general parameters are available.
- operation
Whether to get or save definitions.
- This parameter is required.
- One of the following values: get, save
- namespaces
A JSON array of namespace definitions for a save operation.
Examples:
- Get all custom namespace definitions.
- api.php?action=namespacemanager&operation=get [open in sandbox]
- Remove all custom namespace definitions.
- api.php?action=namespacemanager&operation=save&namespaces=[]&token=123ABC [open in sandbox]