Patch Thread Message

You can patch a thread conversation to update logged message(s). To patch any message, you only need to provide the thread_id and the message_id. Both thread_id and message_id will the same as that returned by the Thread Conversation API at ingestion time.

Update Rating of a Thread Message

PATCH https://api.context.ai/api/v1/log/conversation/thread/:thread_id

Patches a thread converation

Request Body

Field NameTypeDescriptionRequired

thread_id

query_param

id of the thread to be patched

messages

Array

Array of Chat Message objects. Note that each of these ChatMessge object needs to contain an id.

Example Request

{
    "messages": [
        {
            "id": "e_aeglcefpnoqeumu",
            "rating": 1
        }
    ]
}

Example Response

{
    "status": "ok"
}

Last updated