Table of Contents

Class WebhookUpdate

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The request body of PATCH /webhooks/{id} (python-genai WebhookUpdate). Only the fields that are set are sent; combine with an update mask to control which fields are replaced.

public class WebhookUpdate
Inheritance
WebhookUpdate
Inherited Members
Extension Methods

Properties

Name

Optional. The user-provided name of the webhook.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

State

Optional. The state of the webhook (see WebhookStates), e.g. to disable or re-enable it.

[JsonPropertyName("state")]
public string? State { get; set; }

Property Value

string

SubscribedEvents

Optional. The events that the webhook is subscribed to (see WebhookEvents).

[JsonPropertyName("subscribed_events")]
public List<string>? SubscribedEvents { get; set; }

Property Value

List<string>

Uri

Optional. The URI to which webhook events will be sent.

[JsonPropertyName("uri")]
public string? Uri { get; set; }

Property Value

string