All Products
Search
Document Center

OpenSearch:PushInterventionDictionaryEntries

Last Updated:Oct 20, 2026

Accepts intervention entry changes.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

opensearch:WriteInterventionDictionary

update

*InterventionDictionary

acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}

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 name of the intervention dictionary.

my_dict

Request parameters

Parameter

Type

Required

Description

Example

dryRun

boolean

No

Specifies whether to validate the input data. Default value: false. Valid values:

  • true: Validates only the parameters.

  • false: Validates the parameters and creates the attribution configuration.

false

body

array<object>

No

The request body.

array<object>

No

The items in the request body.

{ "cmd": "add", "word": "Search", "created": 1536661485, "updated": 1537320187, "status": "ACTIVE", "relevance": { "100": "0", "200": "2" } }

cmd

string

No

The operation command. Valid values: add: Adds an entry. delete: Deletes an entry.

add

word

string

No

The entry.

Guoer

status

string

No

The status of the entry. Valid values: ACTIVE: The entry is in effect.

ACTIVE

stopword

boolean

No

The stop word intervention type. Valid values: true: Adds the word. false: Blocks the word.

alias

array

No

The added synonyms.

string

No

The added synonyms.

hei

antiAlias

array

No

The blocked synonyms.

string

No

The blocked synonyms.

hi

correction

string

No

The correction word.

Guo

enabled

boolean

No

The spelling correction intervention type. Valid values: true: Adds the correction. false: Blocks the correction.

relevance

object

No

The category prediction intervention content. The key is the category prediction ID, and the value is the relevance level. Valid values for the relevance level: 0: Irrelevant. 1: Slightly relevant. 2: Relevant.

integer

No

The relevance level corresponding to the category prediction ID. Valid values: 0: Irrelevant. 1: Slightly relevant. 2: Relevant.

0

tokens

array<object>

No

The intervention content of the entry.

object

No

A single entry intervention item.

token

string

No

The entity word or term.

Bean

weight

integer

No

The term weight. Valid values: 7: High weight. 4: Medium weight. 1: Low weight.

7

tag

string

No

The English name of the Named Entity Recognition result.

category

tagLabel

string

No

The Chinese name of the Named Entity Recognition result.

品类

order

integer

No

The sequence number of the term.

1

matchType

integer

No

The match type. For Named Entity Recognition entries, valid values: 0: Takes effect when the entire query is matched. 1: Takes effect when a partial match occurs.

0

expirationTime

integer

No

The expiration timestamp, in seconds.

1675253365

tags

array

No

The list of top search entry tags. Valid values: 0: New. 1: Hot. 2: Viral.

integer

No

The top search entry tag value. Valid values: 0: New. 1: Hot. 2: Viral.

1

rank

integer

No

The position. Valid values: 1 to 10.

1

Request body Common parameters.

FieldTypeRequiredExampleDescription
[]ObjectYesThe entry information.
[].cmdStringYes"add"The operation command.
- add: Adds an entry.
- delete: Deletes an entry.






[].wordStringYes"Alibaba Cloud"The entry.

Specific parameters Reference:

Response elements

Element

Type

Description

Example

object

The response body when the request is successful.

requestId

string

The request ID.

D77D0DAF-790D-F5F5-A9C0-133738165014

result

object

The returned result.

Examples

Success response

JSON format

{
  "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
  "result": {
    "test": "test",
    "test2": 1
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.