Adds or removes an intervention entry.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request parameters.

Request syntax

POST /v4/openapi/intervention-dictionaries/[name]/entries/actions/bulk HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
name String Path Yes my_dict

The name of the intervention dictionary.

Request body

Common parameters

Parameter

Type

Required

Example

Description

[]

Object

Yes

The information about the intervention entry.

[].cmd

String

Yes

"add"

The action. Valid values:

  • add: adds an intervention entry.
  • delete: removes an intervention entry.

[].word

String

Yes

"Alibaba Cloud"

The intervention query.

Dictionary-specific parameters

For more information, see the following sections of the InterventionDictionaryEntry topic:

Response parameters

Parameter Type Example Description
requestId String D77D0DAF-790D-F5F5-A9C0-133738165014

The ID of the request.

result List []

The result that was returned.

Examples

Sample requests

POST /v4/openapi/intervention-dictionaries/abccc/entries/actions/bulk

[
  {
    "cmd": "add",
    "relevance": {
      "100": 0
    },
    "word": "hah"
  }
]

Sample success responses

XML format

<requestId>D77D0DAF-790D-F5F5-A9C0-133738165014</requestId>

JSON format

{
    "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014"
}

Error codes

For a list of error codes, visit the API Error Center.