Skip to main content
PUT
Update AdminAgentMessage
Updates an existing AdminAgentMessage record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the AdminAgentMessage-Edit role.

Request Body

Required Fields

integer
required
The Id of the AdminAgentMessage record to update.
integer
required
ID of the admin agent session linked to this message.
integer
required
Role of the message sender: User, Assistant, System, ToolCall, or ToolResult.
integer
required
Number of LLM tokens consumed by this message.
integer
required
Agent when the assistant was asked to answer, Chat when the message was for the people in the conversation.

Optional Fields

string
The text content of the message.
string
Name of the tool that was called or produced a result.
string
JSON-formatted arguments passed to the tool.
string
JSON-formatted result returned by the tool.
integer
User who wrote the message (people only).
string
JSON with the users and/or agent mentioned in the message.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the adminagentmessage was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response