Uploads a sort script.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteSortScript |
*App
|
None | None |
Request syntax
PUT /v4/openapi/app-groups/{appGroupIdentity}/apps/{appVersionId}/sort-scripts/{scriptName}/files/src/{fileName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name or ID of the application. |
''110123411'' |
| scriptName |
string |
Yes |
The name of the sort script to update. |
''test1'' |
| appVersionId |
string |
Yes |
The version number of the application. |
''110123111'' |
| fileName |
string |
Yes |
The file name. |
''file01'' |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The script content information. |
|
| content |
string |
No |
The Base64-encoded script content. |
4769#0: *28194492991 a client request body is buffered to a temporary file /usr/local/webserver/openresty/nginx/client_body_temp/0000624474, |
| version |
integer |
No |
The version number of the script content. |
2022-12-01 |
scriptContent
| Parameter | Type | Required | Description |
| content | String | Yes | The Base64-encoded script content. |
| version | Integer | No | The version number of the script content. Ensures ordered updates during concurrent modifications by multiple users. Default value: the current time. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
{} |
|
| requestId |
string |
The request ID. |
ABCDEFGH |
Examples
Success response
JSON format
{
"requestId": "ABCDEFGH"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.