MediaWiki API súgó
Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.
Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=setglobalaccountstatus
(main | setglobalaccountstatus)
- Ez a modul olvasási jogot igényel.
- Ez a modul írási jogot igényel.
- Ez a modul csak POST kéréseket fogad el.
- Forrás: CentralAuth
- Licenc: GPL-2.0-or-later
Set a global user's status.
Jellemző paraméterek:
Other general parameters are available.
- user
User to change the status of.
- Ez a paraméter kötelező.
- locked
Change whether this user is locked or not.
- A következő értékek egyike: Lehet üres vagy lock, unlock
Change whether this user is not hidden, hidden from the global users list, or suppressed.
- A következő értékek egyike: Lehet üres vagy lists, suppressed
- reason
Reason for changing the user's status.
- statecheck
Optional MD5 of the expected current <userid>:<username>:<hidden>:<locked>, to detect edit conflicts. Set <locked> to 1 for locked, 0 for unlocked.
- token
Egy „setglobalaccountstatus” token, az action=query&meta=tokens kéréssel lekérve
- Ez a paraméter kötelező.
Példák:
- Lock the global account for User:Example with reason "Spam"
- api.php?action=setglobalaccountstatus&user=Example&locked=lock&hidden=&reason=Spam [megnyitás a homokozóban]
- Unlock and suppress the global account for User:Example with reason "I can"
- api.php?action=setglobalaccountstatus&user=Example&locked=unlock&hidden=suppressed&reason=I%20can [megnyitás a homokozóban]