Interface: ApiBlock
Defined in: core/query/blocks.ts:32
One block record. bkprop controls which fields appear.
Properties
allowusertalk?
optionalallowusertalk?:boolean
Defined in: core/query/blocks.ts:117
Blocked user may still edit their own talk page. bkprop=flags.
anononly?
optionalanononly?:boolean
Defined in: core/query/blocks.ts:100
Blocks anonymous (edit-only) users. bkprop=flags.
autoblock?
optionalautoblock?:boolean
Defined in: core/query/blocks.ts:104
Autoblock enabled for the offending IP. bkprop=flags.
automatic?
optionalautomatic?:boolean
Defined in: core/query/blocks.ts:98
Applied automatically by the autoblock feature. bkprop=flags.
block-hidden?
optionalblock-hidden?:boolean
Defined in: core/query/blocks.ts:115
Suppression visibility of the block. bkprop=flags. Written as a separate
key alongside hidden, with the same value (the block is oversighted).
Since
MediaWiki 1.46
by?
optionalby?:string
Defined in: core/query/blocks.ts:49
Name of the admin who applied the block. bkprop=by.
byid?
optionalbyid?:number
Defined in: core/query/blocks.ts:52
User id of the blocking admin. bkprop=byid.
duration-l10n?
optionalduration-l10n?:string
Defined in: core/query/blocks.ts:66
Human-readable duration, e.g. 3 months, or the localized "infinite"
message for a permanent block. bkprop=expiry.
Since
MediaWiki 1.44
expiry?
optionalexpiry?:string
Defined in: core/query/blocks.ts:58
When the block expires, or infinity. bkprop=expiry.
hidden?
optionalhidden?:boolean
Defined in: core/query/blocks.ts:108
Block is hidden from the block log. bkprop=flags.
id?
optionalid?:number
Defined in: core/query/blocks.ts:34
Block id. bkprop=id.
nocreate?
optionalnocreate?:boolean
Defined in: core/query/blocks.ts:102
Prevents account creation. bkprop=flags.
noemail?
optionalnoemail?:boolean
Defined in: core/query/blocks.ts:106
Prevents sending email. bkprop=flags.
parsedreason?
optionalparsedreason?:string
Defined in: core/query/blocks.ts:77
HTML-rendered block reason. bkprop=parsedreason; the 1.43 baseline
rejects that value, so it only appears on newer wikis.
Since
MediaWiki 1.44
partial?
optionalpartial?:boolean
Defined in: core/query/blocks.ts:119
Whether this is a partial block. bkprop=flags.
rangeend?
optionalrangeend?:string
Defined in: core/query/blocks.ts:89
End of the blocked IP range (hex form). bkprop=range on a range block;
before 1.43 also emitted for single-IP blocks.
rangestart?
optionalrangestart?:string
Defined in: core/query/blocks.ts:83
Start of the blocked IP range (hex form). bkprop=range on a range block;
before 1.43 also emitted for single-IP blocks.
reason?
optionalreason?:string
Defined in: core/query/blocks.ts:69
Raw block reason. bkprop=reason.
restrictions?
optionalrestrictions?:unknown[] |ApiBlockRestrictions
Defined in: core/query/blocks.ts:95
Restriction targets of a partial block, grouped by kind; [] for a sitewide
block. bkprop=restrictions.
timestamp?
optionaltimestamp?:string
Defined in: core/query/blocks.ts:55
When the block was applied. bkprop=timestamp.
user?
optionaluser?:string
Defined in: core/query/blocks.ts:40
Blocked user name, IP address or IP range; absent for every autoblock.
bkprop=user.
userid?
optionaluserid?:number
Defined in: core/query/blocks.ts:46
Blocked user id; 0 when the target is an IP address or IP range, absent
for every autoblock. bkprop=userid.