Creates an intervention dictionary.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteInterventionDictionary |
create |
*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 to validate the request parameters. Default value: 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.
|
ner |
| analyzerType |
string |
No |
The analyzer type. Valid values:
|
SYSTEM |
Request body
| Field | 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 custom tokenizer. This parameter is required when type is set to ner. |
| analyzerType | String | No | "SYSTEM" | The analyzer type. |
Reference: 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 intervention dictionary was created. |
1591086323 |
| updated |
string |
The time when the intervention dictionary was last updated. |
1591086323 |
| type |
string |
The type of the intervention dictionary.
|
ner |
| name |
string |
The name of the intervention dictionary. |
testb |
| id |
integer |
||
| analyzerType |
string |
||
| analyzer |
string |
The custom tokenizer. |
dianshang |
Examples
Success response
JSON format
{
"requestId": "80326EFE-485F-46E7-B291-5A1DD08D2198",
"result": {
"created": "1591086323",
"updated": "1591086323",
"type": "ner",
"name": "testb",
"id": 0,
"analyzerType": "",
"analyzer": "dianshang"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.