Modifies the description of a sort script.
Operation description
Modifies the description of a sort script.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteSortScript |
update |
*App
|
None | None |
Request syntax
PUT /v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The application name or application ID. |
my_app |
| appVersionId |
string |
Yes |
The version ID of the application. |
123456 |
| scriptName |
string |
Yes |
The script name. |
test_cava |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| description |
string |
No |
The description of the script. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
[] |
|
| requestId |
string |
The request ID. |
9F165784-5507-5342-ABF3-545293F9808A |
| status |
string |
||
| code |
string |
||
| message |
string |
||
| httpCode |
integer |
Examples
Request example
PUT /v4/openapi/app-groups/my_app/apps/123456/sort-scripts/test_cava
{
"description" : "just for test"
}
Success response examples
XML format
<requestId>ABCDEFGH</requestId>
JSON format
{"requestId":"ABCDEFGH"}
Examples
Success response
JSON format
{
"requestId": "9F165784-5507-5342-ABF3-545293F9808A",
"status": "",
"code": "",
"message": "",
"httpCode": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.