Update Thread Message
Updates the metadata of a specific message within a thread.
This endpoint allows you to update the metadata of a specific message within a thread. It’s useful for adding or modifying additional information associated with a message without changing its core content.
Headers
Your Langtail API Key
"<LANGTAIL_API_KEY>"
Path Parameters
The ID of the thread containing the message.
The ID of the message to update.
Body
Set of key-value pairs that you can attach to the message. This can be useful for storing additional information about the message in a structured format.
{ "my_key": "my key value" }
Response
The unique identifier for the message.
The timestamp when the message was created.
The ID of the thread this message belongs to.
A set of key-value pairs that can be attached to the message.
{ "my_key": "my key value" }
The timestamp when the message was deleted.
Additional messages. These will be appended to the Prompt Template.
[{ "role": "user", "content": "Hello" }]
The ID of the associated request log, if available.
Was this page helpful?