Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintDocumentWebhookResourceBeta

    A webhook resource definition This feature is subject to breaking changes.

    interface BlueprintDocumentWebhookResource {
        apiVersion: string;
        dataset: string;
        description?: string | null;
        displayName?: string;
        filter?: string;
        headers?: Record<string, string>;
        httpMethod?: "POST" | "PUT" | "PATCH" | "DELETE" | "GET";
        includeAllVersions?: boolean;
        includeDrafts?: boolean;
        name: string;
        on: WebhookTrigger[];
        project?: string;
        projection?: string;
        secret?: string;
        status?: "enabled" | "disabled";
        type: "sanity.project.webhook";
        url: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    apiVersion: string

    Must start with 'v' and use the format YYYY-MM-DD

    dataset: string
    description?: string | null
    displayName?: string

    Display name shown in the Sanity dashboard

    The name of the resource

    filter?: string
    headers?: Record<string, string>
    httpMethod?: "POST" | "PUT" | "PATCH" | "DELETE" | "GET"
    includeAllVersions?: boolean
    includeDrafts?: boolean
    name: string
    project?: string
    projection?: string
    secret?: string
    status?: "enabled" | "disabled"
    type: "sanity.project.webhook"
    url: string