Skip to content

Zoho: Create AB testing configuration

Zoho abTesting.postAbTesting: arguments, response, policy and SDK examples.

← Ab testing operations · Get started

Operation zoho.postabtesting

Provider route: POST /crm/v8/settings/AB_testing. 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"]["postAbTesting"]>[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.postAbTesting(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.post_ab_testing(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentOne of: Leads
bodyModelOptionalExpand Create AB testing configuration — request body — body

Referenced models: Create AB testing configuration — request body — body

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Create AB testing configuration — response body

Referenced models: Create AB testing configuration — response body

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

Create AB testing configuration — response body
FieldTypePresenceDescription and constraints
$objectRootSuccessful response returned after creating a new AB test configuration.
Additional keys: not allowed
AB_testingarrayOptionalRepresents the list of results for the AB test creation operation.
Maximum items: 1
AB_testing[]ModelEach itemExpand Create AB testing configuration — response body — AB testing item

Referenced models: Create AB testing configuration — response body — AB testing item

Create AB testing configuration — request body — body
FieldTypePresenceDescription and constraints
$objectRootRequest body schema for creating a new AB test configuration.
Additional keys: not allowed
AB_testingarrayRequired within parentRepresents the array of AB test configurations to create. The request body must contain a **AB_testing** array with one object.
Maximum items: 1
AB_testing[]ModelEach itemExpand Create AB testing configuration — request body — body AB testing item

Referenced models: Create AB testing configuration — request body — body AB testing item

Create AB testing configuration — response body — AB testing item
FieldTypePresenceDescription and constraints
$objectRootRepresents the result object for a successful AB test create, update, or delete operation.
Additional keys: not allowed
codestringOptionalRepresents the status code of the AB test operation result.
Possible values:
**SUCCESS** - The operation completed successfully.
Maximum length: 255
detailsModelOptionalExpand Create AB testing configuration — response body — AB testing item details
messagestringOptionalRepresents the message describing the result of the AB test operation.
Maximum length: 255
statusstringOptionalRepresents the status of the AB test operation.
Possible values:
**success** - The AB test operation completed successfully.
Maximum length: 255

Referenced models: Create AB testing configuration — response body — AB testing item details

Create AB testing configuration — request body — body AB testing item
FieldTypePresenceDescription and constraints
$objectRootRepresents the AB test configuration object in a create request, including base form, variant forms, condition, and winner settings.
Additional keys: not allowed
base_formModelRequired within parentExpand Create AB testing configuration — request body — body AB testing item base form
conditionModelRequired within parentExpand Create AB testing configuration — request body — body AB testing item condition
dynamic_allocation_by_ziabooleanOptionalSpecify whether to enable Zia-based dynamic traffic allocation for the AB test.
Possible values:
**true** - Zia dynamically adjusts traffic allocation based on performance.
**false** - Traffic is allocated according to the manually configured split.
moduleModelRequired within parentExpand Create AB testing configuration — request body — body AB testing item module
namestringRequired within parentSpecify the name of the AB test configuration.
Maximum length: 255
notifybooleanOptionalSpecify whether to enable notifications for this AB test.
Possible values:
**true** - Notifications are sent when the test reaches a significant milestone.
**false** - No notifications are sent.
statusstringRequired within parentSpecify the initial status of the AB test.
Possible values:
**drafted** - Create the test without starting it.
**running** - Start the test immediately.
**scheduled** - Schedule the test to start at a future date.
One of: drafted, running, scheduled
Maximum length: 255
trafficintegerOptionalSpecify the total percentage of visitor traffic to allocate to this AB test.
Format: int32
traffic_diversionnullOptionalSpecify the traffic diversion configuration for the AB test, if applicable. Set to null when no traffic diversion is required.
variant_formarrayRequired within parentSpecify the list of variant webforms to include in the AB test, each with its own traffic allocation and appearance settings.
Maximum items: 2
variant_form[]ModelEach itemExpand Create AB testing configuration — request body — body AB testing item variant form item
winner_configurationModelOptionalExpand Create AB testing configuration — request body — body AB testing item winner configuration

Referenced models: Create AB testing configuration — request body — body AB testing item module, Create AB testing configuration — request body — body AB testing item base form, Create AB testing configuration — request body — body AB testing item condition, Create AB testing configuration — request body — body AB testing item variant form item, Create AB testing configuration — request body — body AB testing item winner configuration

Create AB testing configuration — response body — AB testing item details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details returned in a successful AB test operation response, including the ID of the affected record.
Additional keys: not allowed
idstringOptionalRepresents the unique identifier of the AB test record affected by the operation.
Maximum length: 19
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]+$
Create AB testing configuration — request body — body AB testing item base form
FieldTypePresenceDescription and constraints
$objectRootRepresents the base webform configuration to include when creating an AB test, including the form ID and traffic allocation.
Additional keys: not allowed
idstringOptionalSpecify the unique identifier of the base webform to include in the AB test.
Maximum length: 255
trafficintegerOptionalSpecify the percentage of visitor traffic to allocate to the base webform.
Format: int32
Create AB testing configuration — request body — body 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.
One of: days, weeks, months
Maximum length: 255
remainingintegerOptionalRepresents the number of days or visits remaining before the AB test condition is met.
Format: int32
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.
One of: duration, range, visits
Maximum length: 255
unitintegerOptionalRepresents the numeric value of the test condition, such as the number of days, weeks, months, or visitor sessions.
Format: int32
visitorsintegerOptionalRepresents the target number of visitor sessions required to complete the AB test when the condition type is **visits**.
Format: int32
Create AB testing configuration — request body — body AB testing item winner configuration
FieldTypePresenceDescription and constraints
$objectRootRepresents the winner declaration configuration for an AB test, including automatic announcement settings and the conversion percentage difference threshold.
Additional keys: not allowed
announce_automaticallybooleanOptionalIndicates whether the winning form is announced automatically when the conversion percentage difference threshold is met.
Possible values:
**true** - The winner is announced automatically.
**false** - The winner must be announced manually.
One of: true, false
conversion_percentage_differenceintegerOptionalRepresents the minimum conversion rate percentage difference required to automatically declare a winner. Required when **announce_automatically** is **true**.
Format: int32
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.postabtesting. Catalog operation: postAbTesting. 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.

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.