Sep 20, 2024
Stop an A/B test
Stops an A/B test by its ID.
You can’t restart stopped A/B tests.
Usage
Required ACL:
editSettings
Copy
1
2
3
4
5
6
7
8
9
10
11
from algoliasearch.abtesting.client import AbtestingClientSync
from json import loads
# In an asynchronous context, you can use AbtestingClient instead, which exposes the exact same methods.
client = AbtestingClientSync(
"ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION"
)
response = client.stop_ab_test(
id=42,
)
Did you find this page helpful?