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=rollback
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Undo the last edit to the page.
If the last user who edited the page made multiple edits in a row, they will all be rolled back.
- title
Title of the page to roll back. Cannot be used together with pageid.
- pageid
Page ID of the page to roll back. Cannot be used together with title.
- Type: integer
Tags to apply to the rollback.
- Values (separate with | or alternative):
- user
Name of the user whose edits are to be rolled back.
- This parameter is required.
- မဵဝ်းမၼ်း : ၽူႈၸႂ်ႉတိုဝ်း၊ သေၵေႃႉၵေႃႉ ၸိုဝ်ႈၽူႈၸႂ်ႉတိုဝ်း, ဢၢႆႇၽီႇ, Temporary user, interwiki name (e.g. "prefix>ExampleName") လႄႈ မၢႆတူဝ် ၽူႈၸႂ်ႉတိုဝ်း (ပိူင်ယၢင်ႇ "#12345")
- summary
Custom edit summary. If empty, default summary will be used.
- Default: (empty)
- markbot
Mark the reverted edits and the revert as bot edits.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.
- One of the following values: nochange, preferences, unwatch, watch
- Default: preferences
- token
A "rollback" token retrieved from action=query&meta=tokens
For compatibility, the token used in the web UI is also accepted.
- This parameter is required.
- Roll back the last edits to page ၼႃႈႁူဝ်ႁႅၵ်ႈ by user Example.
- api.php?action=rollback&title=%E1%81%BC%E1%82%83%E1%82%88%E1%82%81%E1%80%B0%E1%80%9D%E1%80%BA%E1%82%81%E1%82%85%E1%81%B5%E1%80%BA%E1%82%88&user=Example&token=123ABC [open in sandbox]
- Roll back the last edits to page ၼႃႈႁူဝ်ႁႅၵ်ႈ by IP user 192.0.2.5 with summary Reverting vandalism, and mark those edits and the revert as bot edits.
- api.php?action=rollback&title=%E1%81%BC%E1%82%83%E1%82%88%E1%82%81%E1%80%B0%E1%80%9D%E1%80%BA%E1%82%81%E1%82%85%E1%81%B5%E1%80%BA%E1%82%88&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [open in sandbox]