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=editslot
- This module requires read rights.
 - This module requires write rights.
 - This module only accepts POST requests.
 - Source: WSSlots
 - License: GPL-2.0-or-later
 
Create and edit slots on pages.
- title
 Title of the page to edit. Cannot be used together with pageid.
- pageid
 Page ID of the page to edit. Cannot be used together with title.
- Type: integer
 - text
 Page content to insert or append.
- slot
 The name of the slot to edit.
- Default: main
 - append
 Whether to append the text to the existing slot content
- Type: boolean (details)
 - prepend
 Whether to prepend the text to the existing slot content.
- Type: boolean (details)
 - summary
 The edit summary.
- Default: (empty)
 - watchlist
 Unconditionally add (watch) or remove (unwatch) the page from the current user's watchlist, use preferences (preferences), or do not change watch (nochange).
- One of the following values: nochange, preferences, unwatch, watch
 - Default: nochange
 - bot
 Whether to mark this edit as a bot edit.
- Type: boolean (details)
 - minor
 Whether to mark this edit as a minor edit.
- Type: boolean (details)
 - createonly
 Don't edit the page if it already exists.
- Type: boolean (details)
 - nocreate
 Don't create the page if it does not exist.
- Type: boolean (details)
 - suppress
 Whether to suppress the edit in recent changes.
- Type: boolean (details)
 - token
 A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.