@makehq/sdk
    Preparing search index...

    Class Scenarios

    Class providing methods for working with Make scenarios. Scenarios allow you to create and run automation tasks consisting of a series of modules that indicate how data should be transferred and transformed between apps or services.

    Index

    Constructors

    Properties

    customProperties: ScenarioCustomProperties

    Access to scenario custom properties data operations

    Methods

    • Activate a scenario.

      Parameters

      • scenarioId: number

        The scenario ID to activate

      Returns Promise<boolean>

      Promise with a boolean indicating success

    • Deactivate a scenario.

      Parameters

      • scenarioId: number

        The scenario ID to deactivate

      Returns Promise<boolean>

      Promise with a boolean indicating success

    • Delete a scenario.

      Parameters

      • scenarioId: number

        The scenario ID to delete

      Returns Promise<void>

    • Replay a past execution of a scenario, re-running it with the original trigger data.

      Only executions whose input artifacts are still stored can be replayed; the API answers 422 Execution is not replayable for the rest, and 404 for an unknown execution ID.

      Parameters

      • scenarioId: number

        The scenario ID the execution belongs to

      • executionIds: string[]

        Execution IDs to replay. Currently only the first one is replayed.

      Returns Promise<ReplayScenarioResponse>

      Promise with the ID of the new execution created by the replay