MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=wsps
(main | wsps)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: WSPageSync
- License: GPL v2
WSPageSync API module
Parameters:
- what
Action to take; valid values are 'add' and 'remove'
- This parameter is required.
- pageId
Page ID of the page to add or remove
- This parameter is required.
- Type: integer
- user
Username making the changes
- This parameter is required.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- Add page with page ID 123
- api.php?action=wspagesync&what=add&pageId=666 [open in sandbox]
- Remove page with page ID 123
- api.php?action=wspagesync&what=remove&pageId=666 [open in sandbox]