API:Filerevert/th

POST request to revert a file to an old version.

Token
To revert a file to an older version, a CSRF token is required. The CSRF token is the same for all pages, but changes at every login. CSRF tokens can be obtained via  with   (MW 1.24+). For older versions, you can use or  to get an edit token.

Error Codes
In addition to the usual stuff: