Context.ai
  • What is Context.ai?
  • List of Trackable Metrics
  • Product Analytics
    • Overview
    • Topic Categorisation
      • LLM Topics
    • User Engagement Tracking
    • Foreign Language Support
    • PII Filtering
    • Custom Metadata Filtering
    • Backfill Analytics Data
    • Custom Events
    • API Ingestion Methods
      • Log Conversation
      • [deprecated] Upsert Conversation
      • Thread Conversation
      • Patch Thread Message
      • API Resources
        • Chat Message
        • [deprecated] Tool Message
        • Custom Event
        • Metadata
        • Conversation
        • Thread
    • Embedded API
      • Multi-Tenancy
      • Conversations
        • Series Data
  • Integrations
    • Getting Started
    • Python SDK
    • Javascript SDK
    • LangChain Plugin
    • Haystack Plugin
    • Authorization
Powered by GitBook
On this page
  • Update Rating of a Thread Message
  • Example Request
  • Example Response

Was this helpful?

  1. Product Analytics
  2. API Ingestion Methods

Patch Thread Message

PreviousThread ConversationNextAPI Resources

Last updated 10 months ago

Was this helpful?

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 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 Name
Type
Description
Required

thread_id

query_param

id of the thread to be patched

messages

Array

Example Request

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

Example Response

{
    "status": "ok"
}

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

Thread Conversation
Chat Message