Skip to main content
This page documents an earlier version of the API client. For the latest version, see Stop an A/B test.
Required ACL: editSettings Marks the A/B test as stopped. The test can’t be restarted. Index A resumes normal operation and receives all search requests.

Examples

AnalyticsClient analytics = new AnalyticsClient("YourApplicationID", "YourWriteAPIKey");
analytics.StopABTest(42);

// Asynchronous
await analytics.StopABTestAsync(42);

Parameters

abTestID
integer
required
The ID of the A/B test you want to stop.

Response

abTestID
integer
Generated ID of the A/B test.
index
string
Base index name for the A/B test.
taskID
integer
The task ID used with the waitTask method.

Response as JSON

This section shows the JSON response returned by the API. Each API client wraps this response in language-specific objects, so the structure may vary. To view the response, use the getLogs method. Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON
{
  "abTestID": 78,
  "taskID": 111885720
  "index": "atis-abtest-default",
}
I