API:Protect/ja

POST request to change a page's protection level.

例
Protecting a page is a multi-step process:  Log in using one of the methods described in . Get a. This token is the same for all pages, but changes at every login.

 Send a POST request with the CSRF token in order to protect the page. 

The sample code below covers the third step in detail.

起こりうるエラー
In addition to the standard error messages:

パラメーターの履歴

 * v1.27:  を導入しました
 * v1.20:  を導入しました
 * v1.17:  を導入しました.    を廃止予定にしました
 * v1.15:  を導入しました

追加的な注記

 * このモジュールは  権限を必要とします.
 * For MediaWiki versions 1.19 and earlier, you can obtain a protect token through.
 * For MediaWiki 1.20-1.23, you can obtain a protect token through.

関連項目

 * - Get a list of titles protected from creation.