interface WebhookUpdateParams {
    api_version?: string;
    name?: string;
    state?: "disabled" | "enabled" | "disabled_due_to_failed_deliveries";
    subscribed_events: (
        | string & {}
        | "batch.succeeded"
        | "batch.cancelled"
        | "batch.expired"
        | "batch.failed"
        | "interaction.requires_action"
        | "interaction.completed"
        | "interaction.failed"
        | "interaction.cancelled"
        | "video.generated"
    )[];
    update_mask?: string;
    uri: string;
}

Properties

api_version?: string

Path param: Which version of the API to use.

name?: string

Body param: Identifier. The name of the webhook. Format: webhooks/{webhook_id}

state?: "disabled" | "enabled" | "disabled_due_to_failed_deliveries"

Body param: The state of the webhook.

subscribed_events: (
    | string & {}
    | "batch.succeeded"
    | "batch.cancelled"
    | "batch.expired"
    | "batch.failed"
    | "interaction.requires_action"
    | "interaction.completed"
    | "interaction.failed"
    | "interaction.cancelled"
    | "video.generated"
)[]

Body param: Required. The events that the webhook is subscribed to. Available events:

  • batch.succeeded
  • batch.cancelled
  • batch.expired
  • batch.failed
  • interaction.requires_action
  • interaction.completed
  • interaction.failed
  • interaction.cancelled
  • video.generated
update_mask?: string

Query param: Optional. The list of fields to update.

uri: string

Body param: Required. The URI to which webhook events will be sent.