Deprecated: Creation of dynamic property ApiMain::$mCommit is deprecated in /customers/c/d/0/laage.se/httpd.www/wiki/includes/api/ApiMain.php on line 201 Deprecated: Return type of ExplodeIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /customers/c/d/0/laage.se/httpd.www/wiki/includes/utils/StringUtils.php on line 576 Deprecated: Return type of ExplodeIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /customers/c/d/0/laage.se/httpd.www/wiki/includes/utils/StringUtils.php on line 590 Deprecated: Return type of ExplodeIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /customers/c/d/0/laage.se/httpd.www/wiki/includes/utils/StringUtils.php on line 583 Deprecated: Return type of ExplodeIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /customers/c/d/0/laage.se/httpd.www/wiki/includes/utils/StringUtils.php on line 609 Deprecated: Return type of ExplodeIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /customers/c/d/0/laage.se/httpd.www/wiki/includes/utils/StringUtils.php on line 558 Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /customers/c/d/0/laage.se/httpd.www/wiki/includes/WebResponse.php on line 37 Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /customers/c/d/0/laage.se/httpd.www/wiki/includes/WebResponse.php on line 37
<?xml version="1.0"?> <api> <help> <module>* action=protect * Change the protection level of a page. https://www.mediawiki.org/wiki/API:Protect This module requires read rights This module requires write rights This module only accepts POST requests Parameters: title - Title of the page you want to (un)protect. Cannot be used together with pageid pageid - ID of the page you want to (un)protect. Cannot be used together with title protections - List of protection levels, formatted action=group (e.g. edit=sysop) This parameter is required Separate values with '|' Maximum number of values 50 (500 for bots) expiry - Expiry timestamps. If only one timestamp is set, it'll be used for all protections. Use 'infinite', 'indefinite', 'infinity' or 'never', for a never-expiring protection. Separate values with '|' Maximum number of values 50 (500 for bots) Default: infinite reason - Reason for (un)protecting Default: cascade - Enable cascading protection (i.e. protect pages included in this page) Ignored if not all protection levels are 'sysop' or 'protect' watch - DEPRECATED! If set, add the page being (un)protected to your watchlist watchlist - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch One value: watch, unwatch, preferences, nochange Default: preferences token - A 'csrf' token retrieved from action=query&meta=tokens This parameter is required Examples: api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions </module> </help> </api>Warning: Trying to access array offset on value of type bool in /customers/c/d/0/laage.se/httpd.www/wiki/includes/libs/IPSet.php on line 244 Warning: Trying to access array offset on value of type bool in /customers/c/d/0/laage.se/httpd.www/wiki/includes/libs/IPSet.php on line 247 Warning: Trying to access array offset on value of type bool in /customers/c/d/0/laage.se/httpd.www/wiki/includes/libs/IPSet.php on line 244 Warning: Trying to access array offset on value of type bool in /customers/c/d/0/laage.se/httpd.www/wiki/includes/libs/IPSet.php on line 247 Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /customers/c/d/0/laage.se/httpd.www/wiki/includes/WebResponse.php on line 37