> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

This document shows you how to update a schema registry resource within
Managed Service for Apache Kafka using the
Google Cloud console, the Google Cloud CLI, or the Managed Kafka API.

### Required roles and permissions


To get the permissions that
you need to update a schema registry,

ask your administrator to grant you the
[Managed Kafka Schema Registry Editor](https://docs.cloud.google.com/iam/docs/roles-permissions/managedkafka.md.txt#managedkafka.schemaRegistryEditor) (`roles/managedkafka.schemaRegistryEditor`) IAM role on your project.


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


This predefined role contains

the permissions required to update a schema registry. To see the exact permissions that are
required, expand the **Required permissions** section:


#### Required permissions

The following permissions are required to update a schema registry:

- Grant this permission on the parent location: `managedkafka.schemaRegistries.update`


You might also be able to get
these permissions
with [custom roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles.md.txt) or
other [predefined roles](https://docs.cloud.google.com/iam/docs/roles-overview.md.txt#predefined).

## Update a schema registry

For a schema registry, you can update the following properties:

- **Schema mode** : To update the schema mode,
  see [Update a schema mode](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/schema-registry/update-schema-mode.md.txt).

- **Compatibility type** : To update the compatibility type,
  see [Update a compatibility type](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/schema-registry/update-compatibility-type.md.txt).

## What's next

- [List all schema registries](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/schema-registry/list-schema-registries.md.txt)

- [View a schema registry](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/schema-registry/view-schema-registry.md.txt)

- [Create a subject](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/schema-registry/create-subject-version-one.md.txt)

- [Delete a schema registry](https://docs.cloud.google.com/managed-service-for-apache-kafka/docs/schema-registry/delete-schema-registry.md.txt)

*Apache Kafka® is a registered
trademark of The Apache Software Foundation or its affiliates in the United
States and/or other countries.*