Method: projects.locations.clusters.topics.patch

Updates the properties of a single topic.

HTTP request

PATCH https://managedkafka.googleapis.com/v1/{topic.name=projects/*/locations/*/clusters/*/topics/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
topic.name

string

Identifier. The name of the topic. The topic segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}

Query parameters

Parameters
updateMask

string (FieldMask format)

Required. Field mask is used to specify the fields to be overwritten in the Topic resource by the update. The fields specified in the updateMask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Topic.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • managedkafka.topics.update

For more information, see the IAM documentation.