---
title: "Set Feedback"
method: PATCH
path: "/api/messages/feedback"
tags: ["Messages"]
---

# Set Feedback

`PATCH /api/messages/feedback`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/messages/feedback`
- Auth: none declared. Required headers: `authorization`

Set Good/Bad feedback on a message.

- 'good': saves message as positive voice sample for learning
- 'bad': marks as bad (avoids similar patterns), optionally with a reason
- null: removes feedback

## Headers

- `x-shop-id` string, nullable: Optional shop ID
- `authorization` string, required: Bearer <token>

## Request body

- RoutersMessagesFeedbackRequest
  - `message_id` string, required
  - `feedback` string, nullable
  - `feedback_reason` string, nullable
  - `feedback_comment` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/soeru/apis/soeru-api.md) · [All operations](https://skmtc.dev/soeru/apis/soeru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/soeru/apis/soeru-api/revisions/63f8d371abed?raw)
