Toggle Rating
PUT
/api/agent/{agent_id}/rating
Agent APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/agent//rating' \
--header 'Content-Type: application/json' \
--data-raw '{
"vote_type": "upvote"
}'
Response Response Example
{
"success": true,
"message": "status code 201: Agent Rating updated successfully",
"data": [
{
"id": 10,
"created_by": "user@example.com",
"created_on": "2024-09-23T19:43:54.389097Z",
"modified_by": "",
"modified_on": "2024-09-23T19:43:54.389141Z",
"is_upvote": false,
"user": 3,
"agent": 3
}
]
}
Request
Path Params
agent_id
integer
required
Example:
3
Body Params application/json