Modifies an experiment scenario.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:UpdateApp |
*AbTestScene
|
None | None |
Request syntax
PUT /v4/openapi/app-groups/{appGroupIdentity}/scenes/{sceneId} 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 scenario. |
20404 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | ABTestScene |
No |
The A/B test scenario. |
|
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. This parameter is used only to check whether the data source is valid. Valid values: true and false. |
true |
Request body
| Parameter | Type | Required | Example | Description |
| name | String | Yes | "kevintest22" | The alias of the scenario. |
| values[] | String | Yes | "kevintest22" | The identity of the scenario. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
{} |
|
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
object |
The details of the A/B test scenario. For more information, see ABTestScene. |
{} |
| created |
integer |
The time when the scenario was created. |
1596527691 |
| params |
object |
The parameters of the experiment. |
{} |
| traffic |
integer |
The percentage of traffic that is allocated to the A/B test. Valid values: 0 to 100. |
111 |
| online |
boolean |
The status of the test.
|
true |
| name |
string |
The alias of the scenario. |
kevintest22 |
| updated |
integer |
The time when the scenario was last modified. |
1596527691 |
| id |
string |
The ID of the scenario. |
20614 |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"created": 1596527691,
"params": {},
"traffic": 111,
"online": true,
"name": "kevintest22",
"updated": 1596527691,
"id": "20614"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.