How to Update Scenarios
Last updated
Last updated
API flows change over time. That is, the composition of a request within the scenario may change e.g. a request may require a new query param. When this happens we need to update the Stoobly to receive the latest updates. This is done in three high-level steps:
Configure a scenario to be overwritable
Enable recording
Manually triggering the scenario or using a test to replay requests
Afterwards, the scenario will be available for use and will contain all the updated requests.
Before updating a scenario, it is recommended to create a snapshot
There are two ways to update scenarios, from the UI and from the CLI:
The first request that gets recorded will overwrite the scenario. Any future recorded request will be appended.
Sometimes you need to revert changes such as when you accidentally record wrong requests to the scenario or overwrite data unintentionally.
Instead of experiencing data loss or corruption, you can reset the scenario back to it's previous snapshotted state.
For more information see our documentation on the snapshots feature: