> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt.

# Interface: ApiBlockResult

Defined in: [core/block.ts:16](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L16)

The `block` object of an `action=block` response.

## Properties

### actionrestrictions?

> `optional` **actionrestrictions?**: `string`\[] | `null`

Defined in: [core/block.ts:70](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L70)

Restricted actions of a partial action block; `null` when the block
restricts no actions. Only emitted on MediaWiki 1.39–1.44 when
`$wgEnablePartialActionBlocks` is on.

***

### additionalBlocksStatuses?

> `optional` **additionalBlocksStatuses?**: `unknown`\[] | `Record`\<`string`, `unknown`>

Defined in: [core/block.ts:85](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L85)

Extra statuses set by extensions during a successful block; `[]` when none
is set.

#### Since

MediaWiki 1.46

***

### allowusertalk

> **allowusertalk**: `boolean`

Defined in: [core/block.ts:48](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L48)

Let the blocked user keep editing their own user talk page.

***

### anononly

> **anononly**: `boolean`

Defined in: [core/block.ts:33](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L33)

Block only anonymous users editing from an IP address range.

***

### autoblock

> **autoblock**: `boolean`

Defined in: [core/block.ts:39](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L39)

Also block the IP addresses this user edits from.

***

### expiry

> **expiry**: `string`

Defined in: [core/block.ts:27](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L27)

Expiry timestamp, or `infinite` for an indefinite block.

***

### hidename

> **hidename**: `boolean`

Defined in: [core/block.ts:45](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L45)

Hide the username in logs and contributions.

***

### id

> **id**: `number`

Defined in: [core/block.ts:24](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L24)

Block id.

***

### namespacerestrictions

> **namespacerestrictions**: `number`\[] | `null`

Defined in: [core/block.ts:60](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L60)

Namespace restrictions of a partial block; `null` when sitewide.

***

### nocreate

> **nocreate**: `boolean`

Defined in: [core/block.ts:36](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L36)

Prevent new account creation from the blocked user or IP range.

***

### noemail

> **noemail**: `boolean`

Defined in: [core/block.ts:42](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L42)

Prevent the user from sending email via `Special:Emailuser`.

***

### pagerestrictions

> **pagerestrictions**: `string`\[] | `null`

Defined in: [core/block.ts:57](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L57)

Page restrictions of a partial block; `null` when sitewide.

***

### partial

> **partial**: `boolean`

Defined in: [core/block.ts:54](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L54)

Restrict the block to specific pages or namespaces instead of sitewide.

***

### reason

> **reason**: `string`

Defined in: [core/block.ts:30](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L30)

Block reason (echoed back).

***

### timestamp?

> `optional` **timestamp?**: `string`

Defined in: [core/block.ts:77](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L77)

When the block was applied, in ISO 8601.

#### Since

MediaWiki 1.47

***

### user

> **user**: `string`

Defined in: [core/block.ts:18](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L18)

Blocked user name / IP.

***

### userID

> **userID**: `number`

Defined in: [core/block.ts:21](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L21)

Blocked user id (`0` for IPs / autoblocks). Note the capital `D`.

***

### watchlistexpiry?

> `optional` **watchlistexpiry?**: [`WatchlistExpiry`](https://types-mediawiki-response.pages.dev/api/core/WatchlistExpiry.md)

Defined in: [core/block.ts:63](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L63)

Expiry applied to the watched user page.

***

### watchuser

> **watchuser**: `boolean`

Defined in: [core/block.ts:51](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/block.ts#L51)

Add the blocked user's user and talk pages to the blocker's watchlist.
