MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=filerevert
(main | filerevert)
- Denne modulen krever lesetilgang.
- Denne modulen krever skrivetilgang.
- Denne modulen aksepterer bare POST forespørsler.
Revert a file to an old version.
Parametre:
- filename
Target filename, without the File: prefix.
- Denne parameteren er påkrevd.
- comment
Upload comment.
- Default: (empty)
- archivename
Archive name of the revision to revert to.
- Denne parameteren er påkrevd.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Denne parameteren er påkrevd.
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