PublicChatController_feedback
POST
/v1/public/conversations/{id}/messages/{index}/feedback
const url = 'https://example.com/v1/public/conversations/example/messages/1/feedback';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"rating":"down"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/public/conversations/example/messages/1/feedback \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "rating": "down" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
index
required
number
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
rating
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
feedback
required
string
index
required
Position of the rated message in the conversation
number
Example
{ "feedback": "down"}