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
1
2
3
4
5
import Abtesting

let client = try AbtestingClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY", region: .us)

let response = try await client.stopABTest(id: 42)
Did you find this page helpful?
Swift API clients v9