Rate an answer
POST/docs/_readsmith/api/ai/feedback
Records a reader's thumbs signal on a logged answer.
Request bodyapplication/jsonrequired
Feedback
idstringrequiredThe logged answer's id.
valueintegerrequiredThe signal: positive up, negative down.
Responses
200 OKRecorded.
object
okbooleanrequired400 Bad request
503 Unavailable
Request
▍POST/docs/_readsmith/api/ai/feedback
curl 'https://readsmith.dev/docs/_readsmith/api/ai/feedback' \
-X POST \
-H 'Content-Type: application/json' \
-d '{}'const response = await fetch("https://readsmith.dev/docs/_readsmith/api/ai/feedback", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: "{}",
});
const data = await response.json();import requests
response = requests.post(
"https://readsmith.dev/docs/_readsmith/api/ai/feedback",
headers={
"Content-Type": "application/json",
},
data="{}",
)
data = response.json()Response
200 OK
{
"ok": false
}