Skip to main content

Create pattern in dictionary

POST 

/bv/chatroom/v1/dictionaries/:id/patterns

Adds a new pattern to 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 create the pattern in it.

Header Parameters

    authorization string

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

Body

required
    text stringrequired

    Required. The text of the pattern to create.

Responses

A successful response.

Schema
    pattern object
    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...