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=filerevert
(main | filerevert)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Font : MediaWiki
- Licéncia : GPL-2.0-or-later
Revert a file to an old version.
Paramètres :
Other general parameters are available.
- filename
Target filename, without the File: prefix.
- Cal aquest paràmetre.
- comment
Telecargar lo comentari.
- Default: (empty)
- archivename
Nom d’archiu de la revision de restablir.
- Cal aquest paràmetre.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Cal aquest paràmetre.
Example:
- Revert Wiki.png to the version of 2011-03-05T15:27:40Z.
- api.php?action=filerevert&filename=Wiki.png&comment=Revert&archivename=20110305152740!Wiki.png&token=123ABC [open in sandbox]