Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentMaximum length: 19
queryobjectOptionalAdditional keys: not allowed
query.modulestringOptionalOne of: Leads

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Get AB Testing configuration by ID — response body — AB testing
$ (anyOf 2)nullAlternative

Referenced models: Get AB Testing configuration by ID — response body — AB testing

8 more schemas are linked from the tables above, on the schema pages.

Get AB Testing configuration by ID — response body — AB testing
FieldTypePresenceDescription and constraints
$objectRootSuccessful response returned when retrieving the details of a specific AB test configuration by ID.
Additional keys: not allowed
AB_testingarrayOptionalRepresents the list of AB test configurations returned for the specified AB test ID.
Maximum items: 1
AB_testing[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents an AB test configuration object with full details, including base form, variant forms, condition, and winner configuration.
Additional keys: not allowed
base_formModelRequired within parentExpand Get AB Testing configuration by ID — response body — AB testing AB testing item base form
codestringOptionalRepresents the response code returned for the AB test operation.
Maximum length: 255
complete_restart_infonullOptionalRepresents information about a complete restart of the AB test, if applicable. Returns null when no restart has occurred.
conditionModelRequired within parentExpand Get AB Testing configuration by ID — response body — AB testing AB testing item condition
created_byModelOptionalExpand Update AB testing configuration by ID — request body — body AB testing item created by
created_timestringOptionalRepresents the creation date and time of the AB test configuration.
Maximum length: 255
daysJSONOptional
days (anyOf 1)integerAlternativeRepresents the number of days the AB test has been running.
Format: int32
days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
dynamic_allocation_by_ziabooleanOptionalIndicates 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.
idstringOptionalRepresents the unique identifier of the AB test configuration.
Maximum length: 19
moduleModelRequired within parentExpand Create AB testing configuration — request body — body AB testing item module
namestringRequired within parentRepresents the name of the AB test configuration.
Maximum length: 255
notifybooleanOptionalIndicates 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_infonullOptionalRepresents information about a pause or resume action on the AB test, if applicable. Returns null when no pause or resume action has occurred.
start_timestringOptionalRepresents the scheduled start time of the AB test.
Maximum length: 255
started_timestringOptionalRepresents the actual date and time when the AB test started running.
Maximum length: 255
statusstringRequired within parentRepresents 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
suggestionnullOptionalRepresents the AI-generated suggestion for the AB test, if available. Returns null when no suggestion is available.
trafficJSONOptional
traffic (anyOf 1)integerAlternativeRepresents the total percentage of visitor traffic allocated to this AB test.
Format: int32
traffic (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
traffic_diversionnullOptionalRepresents the traffic diversion configuration for the AB test, if applicable. Returns null when no traffic diversion is configured.
variant_formarrayRequired within parentRepresents the list of variant webforms included in the AB test, each with its own traffic allocation and performance data.
Maximum items: 2
variant_form[]ModelEach itemExpand Get AB Testing configuration by ID — response body — AB testing AB testing item variant form item
visitorsJSONOptional
visitors (anyOf 1)integerAlternativeRepresents the total number of visitors who have been exposed to the AB test.
Format: int32
visitors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
winner_configurationModelOptionalExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the CRM user who created the AB test configuration.
Additional keys: not allowed
idstringOptionalRepresents the unique identifier of the user who created the AB test.
Maximum length: 19
namestringOptionalRepresents 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the CRM module associated with an AB test, identified by its API name and ID.
Additional keys: not allowed
api_namestringOptionalRepresents the API name of the CRM module associated with the AB test.
Maximum length: 50
idstringOptionalRepresents 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the condition that determines when an AB test ends, including the condition type, period, unit, and remaining time.
Additional keys: not allowed
fromstringOptionalRepresents the start date and time of the AB test when the condition type is **range**.
Format: date-time
Maximum length: 25
periodstringOptionalRepresents 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
remainingJSONOptional
remaining (anyOf 1)integerAlternativeRepresents the number of days or visits remaining before the AB test condition is met.
Format: int32
remaining (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
tostringOptionalRepresents the end date and time of the AB test when the condition type is **range**.
Format: date-time
Maximum length: 25
typestringRequired within parentRepresents 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
unitJSONOptional
unit (anyOf 1)integerAlternativeRepresents the numeric value of the test condition, such as the number of days, weeks, months, or visitor sessions.
Format: int32
unit (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
visitorsJSONOptional
visitors (anyOf 1)integerAlternativeRepresents the target number of visitor sessions required to complete the AB test when the condition type is **visits**.
Format: int32
visitors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Create AB testing configuration — request body — body AB testing item variant form item button attributes item
FieldTypePresenceDescription and constraints
$objectRootRepresents the visual configuration of a button on a webform variant, including its color and label.
Additional keys: not allowed
colorstringOptionalRepresents the color of the button, specified as a hex code or color name.
Maximum length: 255
namestringRequired within parentRepresents the label text displayed on the button.
Maximum length: 255

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]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.