Create a new Scenarios instance.
Function for making API requests
Activate a scenario.
The scenario ID to activate
Promise with a boolean indicating success
Create a new scenario.
Parameters for the scenario to create
Optionaloptions: CreateScenarioOptions<C>Options for creating the scenario
Promise with the created scenario
Deactivate a scenario.
The scenario ID to deactivate
Promise with a boolean indicating success
Delete a scenario.
The scenario ID to delete
Get scenario details.
The scenario ID to get details for
Optionaloptions: GetScenarioOptions<C>Options for filtering the returned fields
Promise with the scenario details
Get the interface for a scenario.
The scenario ID to get the interface for
Promise with the scenario interface
Get the interface for a scenario.
The scenario ID to get the interface for
Promise with the scenario interface
List all scenarios for a team.
The team ID to filter scenarios by
Optionaloptions: ListScenariosOptions<C>Optional parameters for filtering and pagination
Promise with the list of scenarios
List all scenarios for an organization.
The organization ID to filter scenarios by
Optionaloptions: ListScenariosOptions<C>Optional parameters for filtering and pagination
Promise with the list of scenarios
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.
The scenario ID the execution belongs to
Execution IDs to replay. Currently only the first one is replayed.
Promise with the ID of the new execution created by the replay
Execute a scenario with optional input data.
The scenario ID to run
Optionalbody: Record<string, JSONValue>Optional input data for the scenario
Optionaloptions: RunScenarioOptionsOptions for running the scenario
Promise with the execution result
Update a scenario interface.
The scenario ID to update the interface for
The new interface definition
Promise with the updated scenario interface
Update a scenario.
The scenario ID to update
Parameters to update in the scenario
Optionaloptions: UpdateScenarioOptions<C>Options for updating the scenario
Promise with the updated scenario
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.