@makehq/sdk
    Preparing search index...

    Class Hooks

    Class providing methods for working with Make hooks. Hooks refer to the webhooks and mailhooks available in Make that notify you whenever a certain change occurs in the connected app or service.

    Index

    Constructors

    Methods

    • Delete a hook.

      Parameters

      • hookId: number

        The hook ID to delete

      Returns Promise<void>

    • Disable a hook.

      Parameters

      • hookId: number

        The hook ID to disable

      Returns Promise<void>

    • Enable a hook.

      Parameters

      • hookId: number

        The hook ID to enable

      Returns Promise<void>

    • Get hook details.

      Parameters

      • hookId: number

        The hook ID to get details for

      Returns Promise<Hook>

      Promise with the hook details

    • Start learning mode for a hook. Learning mode helps analyze incoming data structure

      Parameters

      • hookId: number

        The hook ID to start learning mode for

      Returns Promise<void>

    • Stop learning mode for a hook.

      Parameters

      • hookId: number

        The hook ID to stop learning mode for

      Returns Promise<void>

    • Rename a hook.

      Parameters

      • hookId: number

        The hook ID to rename

      • name: string

        The new name for the hook

      Returns Promise<Hook>

      Promise with the updated hook

    • Update a hook's configuration data.

      Parameters

      • hookId: number

        The hook ID to update

      • body: UpdateHookBody

        The updated hook configuration

      Returns Promise<boolean>

      Promise with a boolean indicating success