API:Protect/de

Token
Um den Schutzstatus einer Seite zu ändern ist ein CSRF-Token erforderlich. Der Token ist für alle Seiten identisch, ändert sich aber nach jedem Login. CSRF-Tokens können über mit   erhalten werden (MW 1.24+).

In vorhergehenden Versionen von MediaWiki war ein protect-Token notwendig (Veraltet). Dieser Token ist mit dem edit-Token identisch, gleich für alle Seiten, ändert sich aber nach jedem Login. Protect-Tokens können über mit type=protect (MW 1.20+) oder mit der Folgenden Methode erhalten werden:

Seiten schützen
Seiten können mit action=protect geschützt werden.

Parameter

 * If you want to remove a protection, use  as group, e.g.
 * If you leave out an action, the associated value won't be changed, i.e.  leaves the move protection untouched.
 * The number of expiry timestamps must equal the number of protections, or you'll get an error message
 * An exception to this rule is made for backwards compatibility: if you specify exactly one expiry timestamp, it'll apply to all protections
 * Not setting this parameter is equivalent to setting it to
 * The latter is to prevent people who shouldn't be able to protect pages from protecting them anyway by transcluding them in a page with cascading protection.
 * The number of expiry timestamps must equal the number of protections, or you'll get an error message
 * An exception to this rule is made for backwards compatibility: if you specify exactly one expiry timestamp, it'll apply to all protections
 * Not setting this parameter is equivalent to setting it to
 * The latter is to prevent people who shouldn't be able to protect pages from protecting them anyway by transcluding them in a page with cascading protection.
 * The latter is to prevent people who shouldn't be able to protect pages from protecting them anyway by transcluding them in a page with cascading protection.
 * The latter is to prevent people who shouldn't be able to protect pages from protecting them anyway by transcluding them in a page with cascading protection.
 * The latter is to prevent people who shouldn't be able to protect pages from protecting them anyway by transcluding them in a page with cascading protection.
 * The latter is to prevent people who shouldn't be able to protect pages from protecting them anyway by transcluding them in a page with cascading protection.

Possible errors
In addition to the usual stuff: