Editing and archiving multi-armed bandits
Editing and archiving multi-armed bandits
Editing and archiving multi-armed bandits
This topic explains how to edit a multi-armed bandit (MAB) and archive it when you no longer need it.
You can make changes to the name, goal, randomization unit, metrics, and audience of an existing MAB. Changing the audience of a running MAB requires you to stop the MAB, update the audience, and then start a new iteration.
After you create a MAB, you cannot edit its flag or the flag’s variations. If you want to use a different flag or a different flag variation, you must create a new MAB.
You can change a MAB’s name and goal at any time without affecting the results of the MAB.
If you want to begin measuring a completely different randomization unit or metric as part of a MAB, we recommend creating a new MAB instead of editing an existing one. If you want to use a similar metric, you can change the metric associated with a MAB.
To change a MAB’s name, goal, metric, or randomization unit:
To edit the audience of a MAB, you must stop the MAB iteration, make the audience update, and start a new iteration. This lets you select a flag variation to serve to any contexts that will no longer be included in the MAB.
To edit the audience of a MAB:

You can archive MABs that have concluded, as well as the flags and metrics attached to them, but you cannot permanently delete MABs. Archiving MABs preserves the results so you can refer to them in the future.
Before you can archive a MAB:
LaunchDarkly hides archived MABs from the Multi-armed bandits list. You cannot start new iterations for archived MABs.
When you archive or restore a MAB, LaunchDarkly sends the maintainer and anyone following the MAB an email, an in-app notification, and, if you have the Slack app integration configured, a Slack notification.
To archive a MAB:
To view archived MABs on the Multi-armed bandits list, click Filters and select Yes in the “Archived” section.
To switch back to viewing active MABs, click View and select No in the “Archived” section.
To restore a MAB, navigate to the MAB Design tab and click restore this multi-armed bandit.
MABs and MAB settings are specific to single environments. If you want to run the same MAB in different environments, you must create and run the MAB in each environment individually.
You can also use the REST API: Patch experiment