MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=unblock
(main | unblock)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Kilde: MediaWiki
- Licens: GPL-2.0-or-later
Ophæv blokering af bruger.
Specific parameters:
Other general parameters are available.
- 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: bruger, af en af brugernavn, IP, Midlertidig bruger, IP-intervalog bruger-ID (f.eks. "#12345")
- userid
- Deprecated.
Specify user=#ID instead.
- Type: integer
- reason
Årsag til ophævelse af blokering.
- Default: (empty)
Change tags to apply to the entry in the block log.
- Values (separate with | or alternative):
- watchuser
Watch the user's or IP address's user and talk pages.
- Type: boolean (details)
- watchlistexpiry
Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.
- Type: expiry (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Eksempler:
- 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]