Changing wiki content through the API is enabled by default as of MediaWiki 1.14; it can be
disabled by setting $wgEnableWriteAPI = false; in LocalSettings.php. In MediaWiki 1.13 and earlier, you have to explicitly enable the write API with
$wgEnableWriteAPI = true;
Please see the appropriate subsection for detailed information for each module. Write modules generally require a POST method, where read modules usually use GET methods. Exceptions are noted on individual pages.
Block Block a user.
Clearhasmsg Clears the
hasmsg flag for the current user.
Createaccount Create a new user account.
Delete Delete a page.
Edit Create and edit pages.
Emailuser Email a user.
Filerevert Revert a file to an old version.
Imagerotate Rotate one or more images.
Import Import a page from another wiki, or from an XML file.
Managetags Perform management tasks relating to change tags.
Mergehistory Merge page histories.
Move Move a page.
Options Change preferences of the current user.
Patrol Patrol a page or revision.
Protect Change the protection level of a page.
Purge Purge the cache for the given titles.
Revisiondelete Delete and undelete revisions.
Rollback Undo the last series of edits to a page by the last user.
Setnotificationtimestamp Update the notification timestamp for watched pages.
Tag Add or remove change tags from individual revisions or log entries.
Unblock Unblock a user.
Undelete Restore revisions of a deleted page.
Upload Upload a file, or get the status of pending uploads.
Userrights Change a user's group membership.
Watch Add or remove pages from the current user's watchlist.
Possible errors [ edit ]
Some wikis restrict the use of these modules to certain groups of users, or disallow it altogether. All aforementioned modules can return the following errors:
Editing of this wiki through the API is disabled. Make sure the
$wgEnableWriteAPI=true; statement is included in the wiki's LocalSettings.php file
You're not allowed to edit this wiki through the API