Updates a thread’s metadata by its ID.
This endpoint allows you to update the metadata of a thread by its unique identifier. Metadata is a key-value storage system that developers can use to store useful information associated with a thread.Documentation Index
Fetch the complete documentation index at: https://langtail.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Your Langtail API Key
"<LANGTAIL_API_KEY>"
The ID of the thread to update.
A set of key-value pairs that can be attached to the thread. This can be used to store additional information about the thread to facilitate filtering or organization. Note that the new metadata provided will completely overwrite any existing metadata for the thread.
{
"user_id": "user_123",
"conversation_topic": "product_inquiry",
"priority": "high"
}Successfully updated thread
The unique identifier for the thread.
The Unix timestamp (in seconds) of when the thread was created.
The ID of the project this thread belongs to.
The updated set of key-value pairs attached to the thread.
{
"user_id": "user_123",
"conversation_topic": "product_inquiry",
"priority": "high"
}A log created by the first message that creates the thread.