|
| 1 | +/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search |
| 2 | + * experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com` |
| 3 | + * (alias: `https://analytics.algolia.com`) - `https://analytics.de.algolia.com` Use the URL that matches your |
| 4 | + * [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** |
| 5 | + * ## Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate |
| 6 | + * plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: - |
| 7 | + * `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary |
| 8 | + * permissions to make the request. The required access control list (ACL) to make a request is listed in each |
| 9 | + * endpoint's reference. You can find your application ID and API key in the [Algolia |
| 10 | + * dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per |
| 11 | + * app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query |
| 12 | + * parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII |
| 13 | + * characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The |
| 14 | + * A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order |
| 15 | + * of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status. |
| 16 | + * Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ## |
| 17 | + * Version The current version of the A/B Testing API is version 2, as indicated by the `/2/` in each endpoint's URL. |
| 18 | + * |
| 19 | + * The version of the OpenAPI document: 2.0.0 |
| 20 | + * |
| 21 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 22 | + * https://openapi-generator.tech Do not edit the class manually. |
| 23 | + */ |
| 24 | +package algoliasearch.abtesting |
| 25 | + |
| 26 | +/** ScheduleABTestsRequest |
| 27 | + * |
| 28 | + * @param name |
| 29 | + * A/B test name. |
| 30 | + * @param variants |
| 31 | + * A/B test variants. |
| 32 | + * @param scheduledAt |
| 33 | + * Date and time when the A/B test is scheduled to start, in RFC 3339 format. |
| 34 | + * @param endAt |
| 35 | + * End date and time of the A/B test, in RFC 3339 format. |
| 36 | + */ |
| 37 | +case class ScheduleABTestsRequest( |
| 38 | + name: String, |
| 39 | + variants: Seq[AddABTestsVariant], |
| 40 | + scheduledAt: String, |
| 41 | + endAt: String |
| 42 | +) |
0 commit comments