Interface UpdateWebhookData

Request body for updating a repository webhook.

interface UpdateWebhookData {
    active?: boolean;
    add_events?: string[];
    config?: {
        content_type?: "json" | "form";
        insecure_ssl?: "0" | "1";
        secret?: string;
        url: string;
    };
    events?: string[];
    remove_events?: string[];
}

Properties

active?: boolean

Whether the webhook is active

add_events?: string[]

Events to add without replacing the full list

config?: {
    content_type?: "json" | "form";
    insecure_ssl?: "0" | "1";
    secret?: string;
    url: string;
}

Updated webhook configuration

Type declaration

  • Optionalcontent_type?: "json" | "form"

    Payload format

  • Optionalinsecure_ssl?: "0" | "1"

    SSL verification flag

  • Optionalsecret?: string

    HMAC secret

  • url: string

    Payload delivery URL

events?: string[]

Updated list of triggering events

remove_events?: string[]

Events to remove without replacing the full list