Rate one of Flame AI’s answers
POST
/help-chat/messages/{id}/feedback
const url = 'https://example.com/help-chat/messages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/feedback';const options = { method: 'POST', headers: { cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"helpful":true,"reason":"wrong","comment":null}'};
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/help-chat/messages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/feedback \ --header 'Content-Type: application/json' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token> \ --data '{ "helpful": true, "reason": "wrong", "comment": null }'A thumbs up or down on an answer in your own conversation. A thumbs down says why: wrong, not_answered, hard_to_follow, or other with a short description. Rating again replaces the rating.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
helpful
required
boolean
reason
string | null
comment
string | null
Responses
Section titled “Responses”Rating saved
Sign in required
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Session and membership required
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}An answer is already running
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Chat limit reached
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Help chat unavailable
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}