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
Liquipedia API restrictions
Liquipedia API calls are rate limited, see https://liquipedia.net/api-terms-of-use for further information. Violating access will be blocked to protect our server.
All Liquipedia text content is available under the CC BY-SA 3.0 license (see https://creativecommons.org/licenses/by-sa/3.0/us/). Images have varying licenses (see the file pages of the images).
action=changecontentmodel
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Change the content model of a page
- title
Title of the page to change the contentmodel of. Cannot be used together with pageid.
- pageid
Page ID of the page to change the contentmodel of. Cannot be used together with title.
- Type: integer
- summary
Edit summary and log entry reason
- tags
Change tags to apply to the log entry and edit.
- Values (separate with | or alternative):
- model
Content model of the new content.
- This parameter is required.
- One of the following values: Scribunto, css, javascript, json, text, wikitext
- bot
Mark the content model change with a bot flag.
- Type: boolean (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
- Change the main page to have the
text
content model - api.php?action=changecontentmodel&title=Main Page&model=text&token=123ABC [open in sandbox]