Skip to content

Zoho: Update AB testing configuration by ID

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

← Ab testing operations · Get started

Operation zoho.putabtestingbyid

Provider route: PUT /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"]["putAbTestingById"]>[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.putAbTestingById(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.put_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
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentOne of: Leads
bodyModelOptionalExpand Update AB testing configuration by ID — request body — body

Referenced models: Update AB testing configuration by ID — 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 Update AB testing configuration by ID — response body

Referenced models: Update AB testing configuration by ID — response body

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

Update AB testing configuration by ID — response body
FieldTypePresenceDescription and constraints
$objectRootSuccessful response returned after updating an AB test configuration.
Additional keys: not allowed
AB_testingarrayOptionalRepresents the list of results for the AB test update 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

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

Referenced models: Update AB testing configuration by ID — 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

Update AB testing configuration by ID — request body — body 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 Update AB testing configuration by ID — request body — body 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 Create AB testing configuration — request body — body 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
daysintegerOptionalRepresents the number of days the AB test has been running.
Format: int32
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.
One of: 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.
trafficintegerOptionalRepresents the total percentage of visitor traffic allocated to this AB test.
Format: int32
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 Update AB testing configuration by ID — request body — body AB testing item variant form item
visitorsintegerOptionalRepresents the total number of visitors who have been exposed to the AB test.
Format: int32
winner_configurationModelOptionalExpand Create AB testing configuration — request body — body 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, Update AB testing configuration by ID — request body — body AB testing item base form, Create AB testing configuration — request body — body AB testing item condition, Update AB testing configuration by ID — 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
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]+$
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

SDK function policy ID: zoho.putabtestingbyid. Catalog operation: putABTestingById. 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.