Помощ за МедияУики API

Това е автоматично генерирана страница за документация на МедияУики API.

Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=setglobalaccountstatus

(main | setglobalaccountstatus)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: CentralAuth
  • License: GPL-2.0-or-later

Скрива или заключва (или премахва скриването или отключва) глобална потребителска сметка.

Specific parameters:
Other general parameters are available.
user

User to change the status of.

This parameter is required.
locked

Променя статута на потребителят на заключен или отключен.

Една от следните стойности: Can be empty, or lock, unlock
hidden

Дали потребителят да бъде скрит, скрит от списъка на глобални потребители или да бъде потиснат.

Една от следните стойности: Can be empty, or lists, suppressed
reason

Причина за промяната на статуса на потребителя.

statecheck

Optional MD5 of the expected current userid:username:hidden:locked. This is used to detect edit conflicts. The value of hidden must be an empty string if not hidden or the strings lists or suppressed. The value of locked must be 1 for locked, 0 for unlocked. Examples: 2128506:LeeSmith::0; 3839611:VandalGoblin:suppressed:1.

token

Маркер „setglobalaccountstatus“, получен от action=query&meta=tokens

This parameter is required.
Примери:
Заключва глобалната сметка за User:Example с причината „Спам“
api.php?action=setglobalaccountstatus&user=Example&locked=lock&hidden=&reason=Spam [open in sandbox]
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 [open in sandbox]