upvote
or downvote
). If a user has previously rated the agent, this endpoint provides the functionality to modify their vote.agent_id
.agent_id
, follow this guide:curl --location -g --request PUT 'https:///v2/api/agent/0/rating' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"vote_type": "upvote"
}'
{
"success": true,
"message": "Agent Rating updated successfully",
"data": [
{
"id": 77,
"created_by": "user@example.com",
"created_on": "2025-01-16T21:23:41.587726Z",
"modified_by": "",
"modified_on": "2025-01-16T21:23:41.587749Z",
"is_upvote": false,
"user": 160,
"agent": 1251
}
]
}