Update A/B test
update_ab_testChanges a draft A/B test: its name, the traffic each version gets, or its versions. add_version adds a version that copies the one you name, and splits traffic evenly. remove_version removes B, C or D; the later versions move up a letter and traffic splits evenly. Traffic is 5 to 95 percent per version, up to two decimals, and totals 100. A test has two to four versions. To change what a version shows, use update_bundle or update_cart with version. A started test can't change.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ab_test_id": "<ab_test_id>"
},
"name": "update_ab_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The test's new name. | |
| traffic | No | Percent of shoppers per version, like {"A": 50, "B": 50}. Versions you leave out keep theirs. | |
| ab_test_id | Yes | Test id from list_ab_tests. | |
| add_version | No | Add a version that copies this one. | |
| even_traffic | No | Split traffic evenly between the versions. | |
| remove_version | No | Remove this version. |