Skip to main content

Update

Update a topic using the default context.

Parameters

string
required
The ID of the topic to update.
*UpdateTopicRequest
required
The topic update parameters.

Returns

Returns an *UpdateTopicResponse containing the updated topic ID.

Example


UpdateWithContext

Update a topic with a custom context.

Parameters

context.Context
required
Context for the request, useful for timeouts and cancellation.
string
required
The ID of the topic to update.
*UpdateTopicRequest
required
The topic update parameters.

Returns

Returns an *UpdateTopicResponse containing the updated topic ID.

Example


Types

UpdateTopicRequest

Request payload for updating a topic.
string
The updated name of the topic.
string
The updated description of the topic.
The default_subscription field cannot be changed after topic creation.

UpdateTopicResponse

Response from updating a topic.
string
The unique identifier of the updated topic.