Create a rating result for a specific conversation.
Security
ApiKeyAuth
The rating result to be created for a conversation
One of:
POST
- Csat
- Nps
- ThumbsUpOrDown
curl -i -X POST \
'https://dev.dixa.io/v1/conversations/{conversationId}/ratings/{ratingId}/submit' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"userId": "d3cf6f15-1497-4e71-92f2-9b3b228352bd",
"ratingResult": {
"value": 4,
"_type": "Csat"
},
"comment": "Best customer service ever!",
"submittedAt": "2024-03-11T16:39:30Z"
}'Response
- Csat
- Nps
- ThumbsUpOrDown
{ "data": { "ratingId": "33cf4e5e-9ce9-461c-b668-be9b712b717c", "userId": "4c5f7efa-0822-4b75-bdf5-907fa7336e0c", "ratingResult": { … }, "comment": "Excellent customer service!", "submittedAt": "2024-03-11T16:39:30Z" } }