Method: projects.locations.schemaRegistries.contexts.mode.update

Update mode at global level or for a subject.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the mode. The format is * projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/mode/{subject}: mode for a schema registry, or * projects/{project}/locations/{location}/schemaRegistries/{schemaRegistry}/contexts/{context}/mode/{subject}: mode for a specific subject in a specific context

Request body

The request body contains data with the following structure:

JSON representation
{
  "mode": enum (ModeType)
}
Fields
mode

enum (ModeType)

Required. The mode type.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.