API:Protect/zh

POST request to change a page's protection level.

Example
保护页面是一个多步骤的过程：  使用中描述的方法之一登录.  获取. 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:

Parameter history

 * v1.27: Introduced
 * v1.20: Introduced
 * v1.17: Introduced . Deprecated
 * v1.15: Introduced

Additional Notes

 * This module requires  rights.
 * 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.