Modifies a test scenario.
Debugging
Request headers
This operation uses only the common request headers. For more information, see Common request parameters.
Request syntax
PUT /v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId] HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
appGroupIdentity | String | Path | Yes | "my_app_group_name" |
The name of the application. |
sceneId | Integer | Path | Yes | 20404 |
The ID of the test scenario. |
Parameter |
Type |
Required |
Example |
Description |
---|---|---|---|---|
name |
String |
Yes |
"kevintest22" |
The name of the test scenario. |
values[] |
String |
Yes |
"kevintest22" |
The tag of the test scenario. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
requestId | String | ''1111'' |
The ID of the request. |
result | Struct |
The details of the test scenario. |
|
created | Integer | 1596527691 |
The time when the test scenario was created. |
id | String | 20614 |
The ID of the test scenario. |
name | String | test |
The name of the test scenario. |
online | Boolean | true | |
params | Map | {} | |
traffic | Integer | 111 | |
updated | Integer | 1596527691 |
The time when the test scenario was last modified. |
Examples
Sample requests
PUT /v4/openapi/app-groups/os_function_test_v1/scenes/20405
{
"values": [
"kevintest22"
],
"name": "kevintest22"
}
Sample success responses
XML
format
<requestId>D77D0DAF-790D-F5F5-A9C0-133738165014</requestId>
<result>
<id>20405</id>
<name>kevintest22</name>
<status>1</status>
<created>1589012351</created>
<updated>1589012351</updated>
<values>kevintest22</values>
</result>
JSON
format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"id": 20405,
"name": "kevintest22",
"status": 1,
"created": 1589012351,
"updated": 1589012351,
"values": "kevintest22"
}
}
Error codes
For a list of error codes, visit the API Error Center.