API:Rollback/ja

一人の利用者による指定したページへの最新の一連の編集を差し戻すPOST リクエストです.



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

  Log in, via one of the methods described in.  を取得します:

  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 以前の場合は、以下の説明に従ってください:

   </ol>

<span id="POST_request">

POST リクエスト
Send a POST request, with a rollback token to revert a user's edits to the Sandbox page.

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

The revision IDs in the response are:
 *   - The ID of the new revision created by the rollback.
 *   - The ID of the newest revision being rolled back. Before the rollback, this was the current revision.
 *   - The ID of the revision being restored by the rollback. This is the newest revision having been rolled back.

<span id="Sample_code">

権限
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!

<span id="Possible_errors">

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

<span id="Parameter_history">

パラメーターの履歴

 * v1.24:  を導入しました
 * v1.27:  を導入しました
 * v1.17:  を導入しました

<span id="Additional_notes">

追加的な注記

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

<span id="See_also">

関連項目

 * - ページを編集します.
 * - Contains useful links on editing articles.
 * - Has more details on using tokens to log in or make POST requests.
 * - A deprecated API, distinct from, for requesting tokens in earlier versions of MediaWiki.
 * - Rolls back files to an earlier state.
 * - Deletes and restores revisions to a page.
 * - Allows you to diff between edits on a page.