Add Upvote Feedback
POST
/chat/upvote/{id}
Chat APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/chat/upvote/' \
--header 'Content-Type: application/json' \
--data-raw '{
"is_upvote": true,
"created_by": "user@example.com"
}'
Response Response Example
{
"id": 1,
"comments": [
{
"id": 81,
"comment": "great response",
"created_by": "user@example.com",
"created_on": "2024-09-19T21:19:39.217733Z",
"chat_log": 1
}
],
"feedback": [
{
"id": 114,
"created_by": "user@example.com",
"created_on": "2024-10-16T19:23:10.785730Z",
"modified_by": "user@example.com",
"modified_on": "2024-10-16T19:32:07.178720Z",
"is_upvote": true,
"is_downvote": false,
"chat_log": 1
}
],
"question": "How can you prioritize the relationship during conflict resolution?",
"response": {
"query": "'Effective strategies for prioritizing the relationship in conflict resolution'",
"answer": "To prioritize the relationship during conflict resolution, there are several strategies you can employ.",
"sources": [
"conflict-resolution-guide.pdf"
],
"thoughts": "Searched for strategies and resources on conflict resolution.",
"cache_hit": false
},
"created_by": "sshaikh@datasciencedojo.com",
"created_on": "2024-01-20T01:47:19.751813Z",
"total_tokens": 5299,
"prompt_tokens": 4955,
"completion_tokens": 344,
"cache_hit": false,
"query_source": "web",
"message_id": null,
"chat_thread": 4,
"agent": 16,
"user": 2,
"llm_config": 8
}
Request
Path Params
id
integer
required
Body Params application/json