> ## 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.updateAllowlist

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

## Signature

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

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

## Description

Sets `accounts` membership in an ALLOWLIST policy to `allowed` in one batch.

## Parameters

| Name       | Type        | Description                                              |
| ---------- | ----------- | -------------------------------------------------------- |
| `policyId` | `uint64`    | Policy to update. Must be an existing ALLOWLIST policy.  |
| `allowed`  | `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. Gated by the ActivationRegistry — reverts with `FeatureNotActivated` while the feature is inactive.

## Revert Conditions

| Error                    | Condition                                     |
| ------------------------ | --------------------------------------------- |
| `FeatureNotActivated`    | The feature is not yet active.                |
| `PolicyNotFound`         | `policyId` does not exist.                    |
| `IncompatiblePolicyType` | The policy is not an ALLOWLIST policy.        |
| `Unauthorized`           | Caller is not the current admin.              |
| `BatchSizeTooLarge`      | `accounts.length` exceeds the registry limit. |

## Example

```solidity Usage Example theme={null}
IPolicyRegistry(target).updateAllowlist(arg0, arg1, arg2);
```
