airstrings_variant_promote
End an A/B experiment by promoting the winning variant's values as the key's base string, overwriting old values and republishing that environment's bundles. Use once a winner is clear.
Instructions
End a running or stopped A/B experiment for one string key by making a variant's values the key's base string, overwriting the old base values, then republish that environment's bundles automatically. Cannot be undone except by setting the old values again. Refused on a protected environment (production): promote in a writable environment instead. Returns the experiment and per-locale publish results. Use it once a winner is clear; to end the test without changing the base string, use airstrings_variant_stop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The string key whose experiment to promote. | |
| variant | Yes | Name of the winning variant, as in airstrings_variant_status (not 'control'). |