Accepts intervention entry changes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteInterventionDictionary |
update |
*InterventionDictionary
|
None | None |
Request syntax
POST /v4/openapi/intervention-dictionaries/{name}/entries/actions/bulk HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The intervention dictionary name. |
my_dict |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to only validate the request parameters. Default value: false. Valid values:
|
false |
| body |
array<object> |
No |
The request body. |
|
|
array<object> |
No |
The request body. |
{ "cmd": "add", "word": "search", "created": 1536661485, "updated": 1537320187, "status": "ACTIVE", "relevance": { "100": "0", "200": "2" } } |
|
| cmd |
string |
No |
||
| word |
string |
No |
||
| status |
string |
No |
||
| stopword |
boolean |
No |
||
| alias |
array |
No |
||
|
string |
No |
|||
| antiAlias |
array |
No |
||
|
string |
No |
|||
| correction |
string |
No |
||
| enabled |
boolean |
No |
||
| relevance |
object |
No |
||
|
integer |
No |
|||
| tokens |
array<object> |
No |
||
|
object |
No |
|||
| token |
string |
No |
||
| weight |
integer |
No |
||
| tag |
string |
No |
||
| tagLabel |
string |
No |
||
| order |
integer |
No |
||
| matchType |
integer |
No |
||
| expirationTime |
integer |
No |
||
| tags |
array |
No |
||
|
integer |
No |
|||
| rank |
integer |
No |
Request body Common parameters.
| Field | Type | Required | Example | Description |
| [] | Object | Yes | The entry information. | |
| [].cmd | String | Yes | "add" | The operation command. - add: Create. - delete: Delete. |
| [].word | String | Yes | "Alibaba Cloud" | The entry. |
Specific parameters Reference:
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
array |
The response result. |
|
|
string |
The response result. |
[] |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": [
"[]"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.