メインコンテンツまでスキップ

Update dictionary

PUT 

/bv/chatroom/v1/dictionaries/:id

Modifies an existing dictionary with specified parameters. Authorization requires either the chatroom token with admin role or the dictionary token.

Request

Path Parameters

    id stringrequired

    Required. The uuid of the dictionary to update.

Header Parameters

    authorization string

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

Body

required
    name string

    Optional. The name of the dictionary to update. It will not update the name if not provided.

    description string

    Optional. The description of the dictionary to update. It will not update the description if not provided.

Responses

A successful response.

Schema
    dictionary object
    id string

    Output only. The uuid of the dictionary that is used to filter the incoming message from the viewer.

    name string

    Output only. The name of the dictionary.

    description string

    Output only. The description of the dictionary.

    default boolean

    Output only. Indicates the dictionary is the default dictionary that can not be modified or deleted.

    pattern_count int32

    Output only. The number of patterns in the dictionary.

    created_at date-time

    Output only. Indicates the time that the dictionary created.

    updated_at date-time

    Output only. Indicates the time that the dictionary last updated.

Loading...