Jun 23, 2025
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
import com.algolia.api.AbtestingV3Client;
import com.algolia.config.*;
AbtestingV3Client client = new AbtestingV3Client("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION");
client.stopABTest(42);
Did you find this page helpful?