v1

latestOpenAPI 3.0.32026-07-24106305257.4 KB
Ratings

Update a rating

Update a specific rating of agent message

patch/agents/{agentId}/chat/{chatId}/ratings/{ratingId}

Path parameters

agentIdstring required

Agent Id

chatIdstring required

Id of chat where the message will rated

ratingIdstring required

Id of the rating to update

Request body

scorenumber double

The rating score: positive for favorable, negative for unfavorable

agent_idstring

The ID of the agent

chat_idstring

The ID of the chat containing the message

knowledge_idstring

The ID of the agent's knowledge

message_idstring

The ID of the message to rate

Example request

{
  "score": 1
}

Response

OK

agent_idstring required

The ID of the agent

knowledge_idstring required

The ID of the agent's knowledge

external_idstring required

An external identifier

message_idstring

The ID of the message to rate

chat_idstring required

The ID of the chat containing the message

scorenumber double required

The rating score: positive for favorable, negative for unfavorable

idstring required
owner_idstring required
created_atstring required
modified_atstring required

Example response

{
  "score": 1
}