Type Alias WebhookPatch

A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902

type WebhookPatch = {
    op: "add" | "remove" | "replace";
    path:
        | "/name"
        | "/description"
        | "/url"
        | "/eventTypes"
        | "/headers"
        | "/enabled"
        | "/secret";
    value?: boolean
    | number
    | unknown
    | string;
}
Index

Properties

Properties

op: "add" | "remove" | "replace"

The operation to be performed

path:
    | "/name"
    | "/description"
    | "/url"
    | "/eventTypes"
    | "/headers"
    | "/enabled"
    | "/secret"

The path for the given resource field to patch

value?: boolean | number | unknown | string

The value to be used for this operation.