@makehq/sdk
    Preparing search index...

    Class EventSubscriptions

    Class providing methods for working with Make event subscriptions.

    Event subscriptions send selected Make events to an HTTPS endpoint. Reading them requires the event-subscriptions:read scope, changing them event-subscriptions:write, and each action also requires the matching Event subscriptions permission in the organization.

    Index

    Constructors

    Properties

    Access to methods for working with the deliveries of event subscriptions

    Methods

    • Delete an event subscription. It stops receiving events immediately.

      Parameters

      • organizationId: number

        The ID of the organization that owns the subscription

      • subscriptionId: string

        The subscription ID to delete

      Returns Promise<void>

      Promise that resolves when the subscription is deleted

    • Disable an event subscription. Disabling an inactive subscription has no effect.

      Parameters

      • organizationId: number

        The ID of the organization that owns the subscription

      • subscriptionId: string

        The subscription ID to disable

      Returns Promise<EventSubscription>

      Promise with the disabled subscription

    • Enable an event subscription, including one that is suspended. Enabling an active subscription has no effect.

      Parameters

      • organizationId: number

        The ID of the organization that owns the subscription

      • subscriptionId: string

        The subscription ID to enable

      Returns Promise<EventSubscription>

      Promise with the enabled subscription

    • Get an event subscription and its current status.

      Parameters

      • organizationId: number

        The ID of the organization that owns the subscription

      • subscriptionId: string

        The subscription ID to retrieve

      Returns Promise<EventSubscription>

      Promise with the event subscription

    • Update an existing event subscription.

      Parameters

      • organizationId: number

        The ID of the organization that owns the subscription

      • subscriptionId: string

        The subscription ID to update

      • body: Partial

        The fields to update

      Returns Promise<EventSubscription>

      Promise with the updated subscription