agents
Update Message
Update the details of a message associated with an agent.
PATCH
/
v1
/
agents
/
{agent_id}
/
messages
/
{message_id}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
agent_id
string
requiredmessage_id
string
requiredBody
application/json
id
string
requiredThe id of the message.
role
enum<string> | null
The role of the participant.
Available options:
assistant
, user
, tool
, function
, system
text
string | null
The text of the message.
name
string | null
The name of the participant.
tool_calls
object[] | null
The list of tool calls requested.
tool_call_id
string | null
The id of the tool call.
Response
200 - application/json
id
string
The human-friendly ID of the Message
role
enum<string>
requiredThe role of the participant.
Available options:
assistant
, user
, tool
, function
, system
text
string | null
The text of the message.
user_id
string | null
The unique identifier of the user.
agent_id
string | null
The unique identifier of the agent.
model
string | null
The model used to make the function call.
name
string | null
The name of the participant.
created_at
string
The time the message was created.
tool_calls
object[] | null
The list of tool calls requested.
tool_call_id
string | null
The id of the tool call.