API:Rollback/ja

POST request to revert the last series of edits made by one user to a given page.

例
Making any POST request is a multi-step process:

 Log in, via one of the methods described in . GET a :

 Send a POST request, with the CSRF token, to take action on a page and in this process gain  rights to the given page:

 GET a rollback token: If your wiki is using MediaWiki 1.24+, follow these instructions:

  他の多くのトークンと異なり、巻き戻しトークンは共通ではありません: ログインごとに異なるのみならず、ページ名や誰の編集を巻き戻すかによって異なります. MediaWiki 1.23 以前の場合は、以下の説明に従ってください:

   

POST request
Send a POST request, with a rollback token to revert a user's edits to the Sandbox page.

Response
The Response section below is for the final POST request, to revert the edits to the Sandbox page.

Sample code
rollback.py

権限
Rollback requires both the  and the   right on the target page; currently, this means that OAuth consumers, bot passwords etc. require both the   and the   grant –   alone is not enough!

起こりうるエラー
In addition to the usual stuff:

Parameter history

 * v1.24: Introduced
 * v1.27: Introduced
 * v1.17: Introduced

Additional notes

 * 必要があれば、ロールバックの操作とロールバックされた編集の両方をBot編集だとマークして、デフォルトのSpecial:RecentChangesから隠すことができます.