> ## 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`

**answer** `string` *required*

**comment** `string`

**confidence** `number (float)`

**positive** `boolean` *required*

**query** `string` *required*

**strategy** `string`

**suggested\_rule** `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 |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.nsr.stateset.com/api/v1/flywheel/feedback' \
  --header "X-API-Key: $STATESET_NSR_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"
  }
}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.