Creates an experiment scenario.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:CreateApp |
*ABTestScenes
|
None | None |
Request syntax
POST /v4/openapi/app-groups/{appGroupIdentity}/scenes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application group. |
my_app_group_name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | ABTestScene |
No |
The A/B test scene. For more information, see ABTestScene. |
|
| dryRun |
boolean |
No |
Specifies whether to validate only the request parameters. The default value is false. Values:
|
false |
Request body
| Parameter | Type | Required | Example | Description |
| name | String | Yes | "kevintest22" | The name of the scene. |
| status | Integer | No | 0 | The status of the scene. Valid values: 0: The experiment is stopped. 1: The experiment is running. |
| created | Integer | No | 1589012351 | The time when the scene was created. |
| updated | Integer | No | 1589012351 | The time when the scene was last updated. |
| values[] | String | No | "kevintest22" | The ID of the scene. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
object |
The result of the request. |
|
| created |
integer |
The time when the scene was created. |
0 |
| status |
integer |
The status of the scene. Valid values:
|
1 |
| updated |
integer |
The time when the scene was last updated. |
1589012351 |
| name |
string |
The name of the group. |
kevintest_2020-5-7_15:21:48 |
| id |
string |
The ID of the group. |
20405 |
| values |
array |
The IDs of the scenes. |
|
|
string |
The ID of a scene. |
[ "kevintest" ] |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"created": 0,
"status": 1,
"updated": 1589012351,
"name": "kevintest_2020-5-7_15:21:48",
"id": "20405",
"values": [
"[ \"kevintest\" ]"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.