Messages
Modify a message
Modify a message in a thread.
POST
/
v1
/
threads
/
{threadId}
/
messages
/
{messageId}
Authorizations
X-Tune-Key
string
headerrequiredTune API Keys are the preferred way to authenticate with the API. You can create an API Key from your Tune Studio Profile → 'Access Keys' (in sidebar)
Path Parameters
threadId
string
requiredID of the thread message belongs to.
messageId
string
requiredID of the message to be modified.
Body
application/json
metadata
object
Metadata to store additional information in key-value pair.
content
object[]
The content of the message.
role
string
The role of message createor (user or assistant).
Response
200 - application/json
id
string
The ID of the message.
object
string
"thread.message".
createdAt
string
The time the message was created.
threadId
string
The ID of the thread the message is associated with.
role
string
"user" or "assistant".
content
object[]
The content of the message.
attachments
object[]
The attachments of the message.
assistantId
string
runId
string
The ID of the run that created the message.
metadata
object
Metadata for the message key-value pairs.
Was this page helpful?