Updates the parameters of an A/B test experiment.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:UpdateApp |
*AbTestExperiment
|
None | None |
Request syntax
PUT /v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId}/groups/{groupId}/experiments/{experimentId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application. |
“my_app_group_name” |
| sceneId |
integer |
Yes |
The ID of the scene. |
20404 |
| groupId |
integer |
Yes |
The ID of the group. |
13467 |
| experimentId |
integer |
Yes |
The ID of the experiment. |
12889 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
true |
| body | ABTestExperiment |
No |
The request body. For more information, see ABTestExperiment. |
Request body
| Field | Type | Required | Example | Description |
| name | String | No | "my_test" | The name of the experiment. |
| traffic | Integer | No | 30 | The percentage of traffic allocated to the experiment. |
| online | Boolean | No | true | Specifies whether the experiment is online. |
| params | Object | No | {"firstFormulaName": "default"} | The parameters for the experiment. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The ID of the request. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
object |
The details of the experiment. |
|
| created |
integer |
The time when the experiment was created. |
1588842080 |
| params |
object |
The parameters of the experiment. |
{} |
| traffic |
integer |
The percentage of traffic allocated to the experiment. Valid values: 0 to 100. |
30 |
| online |
boolean |
The status of the experiment.
|
true |
| name |
string |
The name of the experiment. |
test1 |
| updated |
integer |
The time when the experiment was last modified. |
1588842080 |
| id |
string |
The ID of the experiment. |
12888 |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"created": 1588842080,
"params": {},
"traffic": 30,
"online": true,
"name": "test1",
"updated": 1588842080,
"id": "12888"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.