> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-sync-code-change-be6d045.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IPolicyRegistry.updateBlocklist

> Generated B20 reference for updateBlocklist(uint64,bool,address[]).

## Signature

```solidity IPolicyRegistry.sol theme={null}
function updateBlocklist(uint64 policyId, bool blocked, address[] calldata accounts) external;
```

| Field               | Value                                    |
| ------------------- | ---------------------------------------- |
| Selector            | `0x5c4e51b8`                             |
| Canonical signature | `updateBlocklist(uint64,bool,address[])` |

## Description

Sets `accounts` membership in a `BLOCKLIST` policy to `blocked` in one batch.

## Parameters

| Name       | Type        | Description                                               |
| ---------- | ----------- | --------------------------------------------------------- |
| `policyId` | `uint64`    | Policy to update. Must be an existing `BLOCKLIST` policy. |
| `blocked`  | `bool`      | Membership state to apply to every account in the batch.  |
| `accounts` | `address[]` | Accounts to update.                                       |

## Access Control

Callable by the policy admin for the target policy. Reverts with `FeatureNotActivated` when the PolicyRegistry feature is not active.

## Revert Conditions

| Error                    | Condition                                     |
| ------------------------ | --------------------------------------------- |
| `PolicyNotFound`         | `policyId` does not exist.                    |
| `IncompatiblePolicyType` | The policy is not a `BLOCKLIST` policy.       |
| `Unauthorized`           | Caller is not the current admin.              |
| `BatchSizeTooLarge`      | `accounts.length` exceeds the registry limit. |

## Example

```solidity Usage Example theme={null}
IPolicyRegistry(target).updateBlocklist(policyId, blocked, accounts);
```
