Creates a fine sort expression for a version of an OpenSearch application. If you set the dryRun parameter to true, this operation validates the specified fine sort expression. The default value of this parameter is false.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteSecondRank |
*SecondRank
|
None | None |
Request syntax
POST /v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/second-ranks HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application group. |
my_app_group_name |
| appId |
integer |
Yes |
The ID of the application version. |
110157886 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. |
true |
| body |
SecondRank |
No |
The request body. For more information, see SecondRank. |
Request body
| Field | Type | Required | Example | Description |
| name | String | No | "test" | The name of the expression. |
| meta | String | No | "random()" | The content of the expression. |
| description | String | No | "my_test" | The description of the expression. |
| active | Boolean | No | true | Specifies whether the expression is the default one. |
For more information, see SecondRank.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| result |
object |
The information about the fine-sort expression. |
{} |
| RequestId |
string |
The request ID. |
ABCDEFGH |
Examples
Success response
JSON format
{
"result": {},
"RequestId": "ABCDEFGH"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.