Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
action=unblock
(main | unblock)
- Modul ini memerlukan hak membaca.
- Modul ini memerlukan hak menulis.
- Modul ini menerima permohonan POST sahaja.
- Source: MediaWiki
- License: GPL-2.0-or-later
Unblock a user.
Parameter:
- id
ID of the block to unblock (obtained through list=blocks). Cannot be used together with user.
- Type: integer
- user
User to unblock. Cannot be used together with id.
- Type: user, by any of nama pengguna, IP, IP range dan user ID (e.g. "#12345")
- userid
- Lapuk.
Specify user=#ID instead.
- Type: integer
- reason
Reason for unblock.
- Asal: (kosong)
- tags
Change tags to apply to the entry in the block log.
- Values (separate with | or alternative):
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Contoh-contoh:
- Unblock block ID #105.
- api.php?action=unblock&id=105 [open in sandbox]
- Unblock user Bob with reason Sorry Bob.
- api.php?action=unblock&user=Bob&reason=Sorry%20Bob [open in sandbox]