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

(main | wsps)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: PageSync
  • License: GPL v2

PageSync API module

Parameters:
what

Action to take; valid values are 'add', 'remove', 'gettags' and 'updatetags'

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.
tags

When updating tags, this should be a comma seperated string holding all the tags

token

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

This parameter is required.
Examples:
Add page with page ID 123
api.php?action=pagesync&what=add&pageId=666 [open in sandbox]
Remove page with page ID 123
api.php?action=pagesync&what=remove&pageId=666 [open in sandbox]
Get tags for page ID 123. Status ok when correct and tags hold the current tags.
api.php?action=pagesync&what=gettags&pageId=666 [open in sandbox]
Update tags for page ID 123. Will simply override all existing tags.
api.php?action=pagesync&what=updatetags&pageId=666 [open in sandbox]