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.
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"]["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 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.put_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 | Required within parent | Additional keys: not allowed |
query.module | string | Required within parent | One of: Leads |
body | Model | Optional | Expand Update AB testing configuration by ID — request body — body |
Referenced models: Update AB testing configuration by ID — request body — body
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 |
|---|---|---|---|
$ | Model | Root | Expand Update AB testing configuration by ID — response body |
Referenced models: Update AB testing configuration by ID — response body
Schemas
Section titled “Schemas”9 more schemas are linked from the tables above, on the schema pages.
Update AB testing configuration by ID — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Successful response returned after updating an AB test configuration. Additional keys: not allowed |
AB_testing | array | Optional | Represents the list of results for the AB test update operation. Maximum items: 1 |
AB_testing[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request body schema for updating an existing AB test configuration. Additional keys: not allowed |
AB_testing | array | Required within parent | Represents 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[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the result object for a successful AB test create, update, or delete operation. Additional keys: not allowed |
code | string | Optional | Represents the status code of the AB test operation result. Possible values: **SUCCESS** - The operation completed successfully. Maximum length: 255 |
details | Model | Optional | Expand Create AB testing configuration — response body — AB testing item details |
message | string | Optional | Represents the message describing the result of the AB test operation. Maximum length: 255 |
status | string | Optional | Represents 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
| 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 Update AB testing configuration by ID — request body — body 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 Create AB testing configuration — request body — body 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 | integer | Optional | Represents the number of days the AB test has been running. Format: int32 |
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. One of: 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 | integer | Optional | Represents the total percentage of visitor traffic allocated to this AB test. Format: int32 |
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 Update AB testing configuration by ID — request body — body AB testing item variant form item |
visitors | integer | Optional | Represents the total number of visitors who have been exposed to the AB test. Format: int32 |
winner_configuration | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details returned in a successful AB test operation response, including the ID of the affected record. Additional keys: not allowed |
id | string | Optional | Represents 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
| 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]+$ |
Create AB testing configuration — request body — body AB testing item winner configuration
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the winner declaration configuration for an AB test, including automatic announcement settings and the conversion percentage difference threshold. Additional keys: not allowed |
announce_automatically | boolean | Optional | Indicates 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_difference | integer | Optional | Represents the minimum conversion rate percentage difference required to automatically declare a winner. Required when **announce_automatically** is **true**. Format: int32 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”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.