cURL
curl --request POST \ --url https://api.langtail.com/v2/threads/{threadId}/messages/{messageId} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <x-api-key>' \ --data '{ "metadata": { "my_key": "my key value" } }'
{ "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "deletedAt": "2023-11-07T05:31:56Z", "threadId": "<string>", "content": [ { "role": "user", "content": "Hello" } ], "metadata": { "my_key": "my key value" }, "requestLogId": "<string>" }
Updates the metadata of a specific message within a thread.
Your Langtail API Key
"<LANGTAIL_API_KEY>"
The ID of the thread containing the message.
The ID of the message to update.
Successful response
The response is of type object.
object
Was this page helpful?