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

# IB20.updateContractURI

> Generated B20 reference for updateContractURI(string).

[Related concept](/base-chain/specs/upgrades/beryl/b20)

## Signature

```solidity theme={null}
function updateContractURI(string calldata newURI) external;
```

| Field               | Value                       |
| ------------------- | --------------------------- |
| Selector            | `0x7e5b1e24`                |
| Canonical signature | `updateContractURI(string)` |

## Description

Updates `contractURI`. Emits the parameterless `ContractURIUpdated` event per ERC-7572;
integrators re-fetch `contractURI()` after observing it.
Dev: Reverts with `AccessControlUnauthorizedAccount` when the caller does not hold `METADATA_ROLE`.
Param: newURI New contract URI.

## Access control

`METADATA_ROLE` gates this call.

## Policy interaction

No direct policy interaction.

## Example

```solidity theme={null}
IB20(target).updateContractURI(arg0);
```

## Related

* [IB20 reference](/base-chain/specs/upgrades/beryl/b20/specification/reference/interfaces/IB20)
* [Constants & addresses](/base-chain/specs/upgrades/beryl/b20/specification/reference/constants-and-addresses)
