> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flywheel feedback handler

> **Required scope:** write

**Required scope:** `write`

### Request body

`FeedbackRequest`

<ParamField body="answer" type="string" required />

<ParamField body="comment" type="string" />

<ParamField body="confidence" type="number (float)" />

<ParamField body="positive" type="boolean" required />

<ParamField body="query" type="string" required />

<ParamField body="strategy" type="string" />

<ParamField body="suggested_rule" type="object" />

### Response

No response body. Feedback accepted.

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `202` | Feedback accepted                                  |
| `400` | Query/answer missing                               |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/flywheel/feedback' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "answer": "string",
    "comment": "Two-person tent, green — replacement for damaged pole set.",
    "confidence": 7.5,
    "positive": true,
    "query": "string",
    "strategy": "string",
    "suggested_rule": {
      "body": [
        "Two-person tent, green — replacement for damaged pole set."
      ],
      "evidence_count": 1,
      "head": "string"
    }
  }'
  ```
</RequestExample>
