UpdateDict
Call the UpdateDict operation to create or update a dictionary for an Elasticsearch Serverless application. You can upload dictionaries only from OSS.
Operation description
OSS path requirements: The folder name must contain es-serverless, or you must add the es-serverless:es-serverless tag to the OSS bucket.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
es-serverless:UpdateDict |
update |
*All Resource
|
None | None |
Request syntax
PUT /openapi/es-serverless/instances/{appName}/dicts HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appName |
string |
Yes |
The name of the application. |
test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Request body. |
|
| files |
array<object> |
Yes |
File information. |
|
|
array<object> |
No |
File information. |
||
| name |
string |
No |
The name of the dictionary file to upload. |
dic_0.dic |
| ossObject |
object |
No |
OSS storage configuration details. |
|
| bucketName |
string |
No |
The name of the OSS bucket. |
bucket1 |
| key |
string |
No |
The path of the dictionary file in the OSS bucket. |
oss/dic_0.dic |
| type |
string |
No |
The type of dictionary to update:
|
MAIN |
| sourceType |
string |
No |
The source type of the dictionary file. Only OSS is supported. |
OSS |
| dryRun |
boolean |
No |
Whether to validate input parameters only, without creating or updating the dictionary. Default value: false.
|
true |
| allowCover |
boolean |
No |
Whether to allow overwriting an existing dictionary with the same name. Default value: false.
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| requestId |
string |
The request ID. |
12797BCC-E0B5-5A47-B4B9-A14DDF0B0200 |
| result |
boolean |
The result of the operation. |
true |
Examples
Success response
JSON format
{
"requestId": "12797BCC-E0B5-5A47-B4B9-A14DDF0B0200",
"result": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.