Method: projects.locations.schemaRegistries.config.update

Update config at global level or for a subject. Creates a SchemaSubject-level SchemaConfig if it does not exist.

HTTP request

PUT https://managedkafka.googleapis.com/v1/{name=projects/*/locations/*/schemaRegistries/*/config/**}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name to update the config for. It can be either of following: * projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/config: Update config at global level. * projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/config/{subject}: Update config for a specific subject.

Request body

The request body contains data with the following structure:

JSON representation
{
  "compatibility": enum (CompatibilityType),
  "normalize": boolean
}
Fields
compatibility

enum (CompatibilityType)

Required. The compatibility type of the schemas. Cannot be unset for a SchemaRegistry-level SchemaConfig. If unset on a SchemaSubject-level SchemaConfig, removes the compatibility field for the SchemaConfig.

normalize

boolean

Optional. If true, the schema will be normalized before being stored or looked up. The default is false. Cannot be unset for a SchemaRegistry-level SchemaConfig. If unset on a SchemaSubject-level SchemaConfig, removes the normalize field for the SchemaConfig.

Response body

If successful, the response body contains an instance of SchemaConfig.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.