Skip to main content
Version: 2.0

Update a turn

PATCH 

/v2/chats/:chat_id/turns/:turn_id

Update a turn; used to disable or enable a chat.

Request

Path Parameters

    chat_id stringrequired

    Possible values: Value must match regular expression cht_.+$

    The ID of the chat.

    turn_id stringrequired

    Possible values: Value must match regular expression trn_.+$

    The ID of the turn.

Header Parameters

    Request-Timeout integer

    Possible values: >= 1

    The API will make a best effort to complete the request in the specified seconds or time out.

    Request-Timeout-Millis integer

    Possible values: >= 1

    The API will make a best effort to complete the request in the specified milliseconds or time out.

Body

    enabled boolean

    Indicates whether to disable a turn. It will disable this turn and all subsequent turns. Enabling a turn is not implemented.

Responses

Successfully modified the turn.

Schema
    id string

    Possible values: Value must match regular expression trn_.+$

    The ID of the turn.

    chat_id string

    Possible values: Value must match regular expression cht_.+$

    The ID of the chat the turn resides in.

    query string

    The query made to produce this turn.

    answer string

    The response to the query.

    enabled boolean

    Indicates whether the turn is enabled and shown in future turns of the chat.

    created_at date-time

    Specifies when the turn was created.

Loading...