跳到主要内容

Batch create patterns in dictionary

POST 

/bv/chatroom/v1/dictionaries/:id/patterns:batch-create

Enables bulk creation of patterns in the specified dictionary. Authorization requires either the chatroom token with admin role or the dictionary token.

Request

Path Parameters

    id stringrequired

    Required. The uuid of the dictionary that wants to batch create patterns in it.

Header Parameters

    authorization string

    This API should be invoked with the chatroom token or dictionary token.

Body

required
    texts string[]required

    Required. The texts of the pattern to batch create.

Responses

A successful response.

Schema
    patterns object[]
  • Array [
  • id string

    Output only. The uuid of the pattern to filter the incoming message from the viewer.

    text string

    Output only. The text of the pattern to filter the incoming message from the viewer.

  • ]
Loading...