Creates an intervention dictionary.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteInterventionDictionary |
*InterventionDictionary
|
None | None |
Request syntax
POST /v4/openapi/intervention-dictionaries HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. The default value is false. Valid values:
|
false |
| body |
object |
No |
The request body. |
|
| name |
string |
No |
The name of the intervention dictionary. |
ner_dict_ec |
| type |
string |
No |
The type of the intervention dictionary. Valid values:
|
ner |
| analyzerType |
string |
No |
The type of the analyzer. Valid values:
|
SYSTEM |
Request body
| Parameter | Type | Required | Example | Description |
| name | String | Yes | "my_dict" | The name of the intervention dictionary. |
| type | String | Yes | "ner" | The type of the intervention dictionary. |
| analyzer | String | No | "my_analyzer" | The name of the custom analyzer. This parameter is required if you set the type parameter to ner. |
| analyzerType | String | No | "SYSTEM" | The type of the analyzer. |
For more information, see InterventionDictionary.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
80326EFE-485F-46E7-B291-5A1DD08D2198 |
| result |
object |
The details of the intervention dictionary. |
|
| created |
string |
The time when the dictionary was created. |
1591086323 |
| analyzer |
string |
The custom analyzer. |
dianshang |
| updated |
string |
The time when the intervention dictionary was last updated. |
1591086323 |
| type |
string |
The type of the intervention dictionary. Valid values:
|
ner |
| name |
string |
The name of the dictionary. |
testb |
Examples
Success response
JSON format
{
"requestId": "80326EFE-485F-46E7-B291-5A1DD08D2198",
"result": {
"created": "1591086323",
"analyzer": "dianshang",
"updated": "1591086323",
"type": "ner",
"name": "testb"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.