Modifies the entries of a custom analyzer.

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 the common request headers. For more information, see Common request parameters.

Request syntax

POST /v4/openapi/user-analyzers/[name]/entries/actions/bulk HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
name String Path Yes "kevin_test"

The name of the custom analyzer.

Request body

Parameter

Type

Required

Example

Description

entries[]

Object

Yes

The entries to modify.

entries[].cmd

String

Yes

"add"

The operation to perform on the entries. Valid values:

  • add
  • delete

entries[].key

String

Yes

"testvalue"

The key of the entry.

entries[].value

String

Yes

"test value"

The value of the entry.

entries[].splitEnabled

Boolean

No

true

Specifies whether to enable more fine-grained segmentation.

Default value: true.

Response parameters

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

The ID of the request.

result Map {}

N/A

Examples

Sample requests

POST /v4/openapi/user-analyzers/abccc/entries/actions/bulk

{
  "entries": [
    {
      "cmd": "add",
      "key": "kevintest",
      "value": "kevin test",
      "splitEnabled": true
    },
    {
      "cmd": "delete",
      "key": "kevintest2",
      "value": "kevintest2",      
      "splitEnabled": false
    }
  ]
}

Sample success responses

XML format

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

JSON format

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

Error codes

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