Skip to main content

List patterns in dictionary

GET 

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

Lists all patterns from 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 list the patterns in it.

Query Parameters

    current_page int32

    Input only. Indicates the current page to shows. Default: 1.

    items_per_page int32

    Input only. Indicates the number of items to shows per page. Default: 1. Max: 100.

Header Parameters

    authorization string

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

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.

  • ]
  • pagination object
    items_per_page int32

    The number of items per page in the current pagination.

    current_page int32

    The current page in the current pagination.

    total_items int32

    Output only. The total numbers of the list in the current pagination.

Loading...