Zoho: Get AB Testing configuration by ID
Zoho abTesting.getAbTestingById: arguments, response, policy and SDK examples.
← Ab testing operations · Get started
Operation zoho.getabtestingbyid
Provider route: GET /crm/v8/settings/AB_testing/{id}. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["abTesting"]["getAbTestingById"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.abTesting.getAbTestingById(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_zoho import ZohoIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.ab_testing.get_ab_testing_by_id(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.id | string | Required within parent | Maximum length: 19 |
query | object | Optional | Additional keys: not allowed |
query.module | string | Optional | One of: Leads |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Get AB Testing configuration by ID — response body — AB testing |
$ (anyOf 2) | null | Alternative |
Referenced models: Get AB Testing configuration by ID — response body — AB testing
Schemas
Section titled “Schemas”8 more schemas are linked from the tables above, on the schema pages.
Get AB Testing configuration by ID — response body — AB testing
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Successful response returned when retrieving the details of a specific AB test configuration by ID. Additional keys: not allowed |
AB_testing | array | Optional | Represents the list of AB test configurations returned for the specified AB test ID. Maximum items: 1 |
AB_testing[] | Model | Each item | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item |
Referenced models: Get AB Testing configuration by ID — response body — AB testing AB testing item
Get AB Testing configuration by ID — response body — AB testing AB testing item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an AB test configuration object with full details, including base form, variant forms, condition, and winner configuration. Additional keys: not allowed |
base_form | Model | Required within parent | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item base form |
code | string | Optional | Represents the response code returned for the AB test operation. Maximum length: 255 |
complete_restart_info | null | Optional | Represents information about a complete restart of the AB test, if applicable. Returns null when no restart has occurred. |
condition | Model | Required within parent | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item condition |
created_by | Model | Optional | Expand Update AB testing configuration by ID — request body — body AB testing item created by |
created_time | string | Optional | Represents the creation date and time of the AB test configuration. Maximum length: 255 |
days | JSON | Optional | |
days (anyOf 1) | integer | Alternative | Represents the number of days the AB test has been running. Format: int32 |
days (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
dynamic_allocation_by_zia | boolean | Optional | Indicates whether the traffic allocation between the base form and variant forms is managed dynamically by Zia, the AI assistant. Possible values: **true** - Zia dynamically adjusts traffic allocation based on performance. **false** - Traffic is allocated according to the manually configured split. |
id | string | Optional | Represents the unique identifier of the AB test configuration. Maximum length: 19 |
module | Model | Required within parent | Expand Create AB testing configuration — request body — body AB testing item module |
name | string | Required within parent | Represents the name of the AB test configuration. Maximum length: 255 |
notify | boolean | Optional | Indicates whether notifications are enabled for this AB test. Possible values: **true** - Notifications are sent when the test reaches a significant milestone. **false** - No notifications are sent. |
pause_resume_info | null | Optional | Represents information about a pause or resume action on the AB test, if applicable. Returns null when no pause or resume action has occurred. |
start_time | string | Optional | Represents the scheduled start time of the AB test. Maximum length: 255 |
started_time | string | Optional | Represents the actual date and time when the AB test started running. Maximum length: 255 |
status | string | Required within parent | Represents the current lifecycle status of the AB test. Possible values: **drafted** - The test exists but has not started. **running** - The test actively distributes traffic. **scheduled** - The test starts at a future date. **paused** - The test has stopped temporarily. **completed** - The test has finished and results are available. **launched** - The winning form has launched. Known values: drafted, running, scheduled, completed, launched, paused Maximum length: 255 |
suggestion | null | Optional | Represents the AI-generated suggestion for the AB test, if available. Returns null when no suggestion is available. |
traffic | JSON | Optional | |
traffic (anyOf 1) | integer | Alternative | Represents the total percentage of visitor traffic allocated to this AB test. Format: int32 |
traffic (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
traffic_diversion | null | Optional | Represents the traffic diversion configuration for the AB test, if applicable. Returns null when no traffic diversion is configured. |
variant_form | array | Required within parent | Represents the list of variant webforms included in the AB test, each with its own traffic allocation and performance data. Maximum items: 2 |
variant_form[] | Model | Each item | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item variant form item |
visitors | JSON | Optional | |
visitors (anyOf 1) | integer | Alternative | Represents the total number of visitors who have been exposed to the AB test. Format: int32 |
visitors (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
winner_configuration | Model | Optional | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item winner configuration |
Referenced models: Update AB testing configuration by ID — request body — body AB testing item created by, Create AB testing configuration — request body — body AB testing item module, Get AB Testing configuration by ID — response body — AB testing AB testing item base form, Get AB Testing configuration by ID — response body — AB testing AB testing item condition, Get AB Testing configuration by ID — response body — AB testing AB testing item variant form item, Get AB Testing configuration by ID — response body — AB testing AB testing item winner configuration
Update AB testing configuration by ID — request body — body AB testing item created by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the CRM user who created the AB test configuration. Additional keys: not allowed |
id | string | Optional | Represents the unique identifier of the user who created the AB test. Maximum length: 19 |
name | string | Optional | Represents the full name of the user who created the AB test. Maximum length: 255 |
Create AB testing configuration — request body — body AB testing item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the CRM module associated with an AB test, identified by its API name and ID. Additional keys: not allowed |
api_name | string | Optional | Represents the API name of the CRM module associated with the AB test. Maximum length: 50 |
id | string | Optional | Represents the unique identifier of the CRM module associated with the AB test. Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+$ |
Get AB Testing configuration by ID — response body — AB testing AB testing item condition
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the condition that determines when an AB test ends, including the condition type, period, unit, and remaining time. Additional keys: not allowed |
from | string | Optional | Represents the start date and time of the AB test when the condition type is **range**. Format: date-time Maximum length: 25 |
period | string | Optional | Represents the time period unit used for a duration-based test condition. Possible values: **days** - The duration is measured in days. **weeks** - The duration is measured in weeks. **months** - The duration is measured in months. Known values: days, weeks, months Maximum length: 255 |
remaining | JSON | Optional | |
remaining (anyOf 1) | integer | Alternative | Represents the number of days or visits remaining before the AB test condition is met. Format: int32 |
remaining (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
to | string | Optional | Represents the end date and time of the AB test when the condition type is **range**. Format: date-time Maximum length: 25 |
type | string | Required within parent | Represents the type of condition used to determine when the AB test ends. Possible values: **duration** - The test runs for a fixed period. **range** - The test runs between a start and end date. **visits** - The test ends after a target number of visitor sessions. Known values: duration, range, visits Maximum length: 255 |
unit | JSON | Optional | |
unit (anyOf 1) | integer | Alternative | Represents the numeric value of the test condition, such as the number of days, weeks, months, or visitor sessions. Format: int32 |
unit (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
visitors | JSON | Optional | |
visitors (anyOf 1) | integer | Alternative | Represents the target number of visitor sessions required to complete the AB test when the condition type is **visits**. Format: int32 |
visitors (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Create AB testing configuration — request body — body AB testing item variant form item button attributes item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the visual configuration of a button on a webform variant, including its color and label. Additional keys: not allowed |
color | string | Optional | Represents the color of the button, specified as a hex code or color name. Maximum length: 255 |
name | string | Required within parent | Represents the label text displayed on the button. Maximum length: 255 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getabtestingbyid. Catalog operation: getABTestingById. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
No-content response statuses: [204]