Skip to content

Update feedback on a response

Updates feedback for a response.

PATCH /conversations/:id/response/:response_id/feedback/:feedback_id

response_id string required

The ID of the response to update feedback on.


feedback_id string required

The ID of the feedback to update.


rating enum

The feedback rating for the response.

Allowed values: "positive" or "negative".


comment string

A comment for providing additional explanation regarding feedback.

Request
import Inconvo from "@inconvoai/node";
const inconvo = new Inconvo({
apiKey: process.env.INCONVO_API_KEY
});
const updatedFeedback = await inconvo.conversations.response.feedback.update(
"fb_abc123",
{
id: "convo_abc123",
response_id: "resp_abc123",
rating: "negative",
comment: "That was not quite right."
}
);
console.log(updatedFeedback);
Response
{
"id": "fb_abc123",
"rating": "negative",
"comment": "That was not quite right."
}
curl -X PATCH 'https://app.inconvo.ai/api/v1/conversations/convo_abc123/response/resp_abc123/feedback/fb_abc123' \
-H "Authorization: Bearer $INCONVO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"rating": "negative", "comment": "That was not quite right."}'
Response
{
"id": "fb_abc123",
"rating": "negative",
"comment": "That was not quite right."
}