Submit solution or session feedback
Record whether a generated example or a session was useful, with optional written feedback. You can rate a saved example using its solution identifier or submit feedback for a session.
Each successful submission saves a new feedback record.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Required exactly once when solution_id is omitted: identifies the session to rate. Must be 16 lowercase hexadecimal characters, with no whitespace. For solution feedback, this header is optional client attribution.
^[0-9a-f]{16}$Optional client attribution, trimmed printable ASCII, maximum 80 bytes.
Optional client version attribution, trimmed printable ASCII, maximum 80 bytes.
Optional agent attribution, trimmed printable ASCII, maximum 160 bytes.
Body
Append a decision to one solution or a caller-supplied session.
Whether the example or session was useful: true for acceptance, false for rejection.
false
Optional text preserved exactly, including empty string; omitted/null means no text.
Saved example to rate, using the solution_id returned by example generation.
Must be a hyphenated UUID. Omit to rate the session identified by
X-GitHits-Session-ID; null and empty values are invalid.
Optional nonblank tool attribution; not a tool-call target. Null is invalid.
1Response
New append-only feedback record, confirmed by the backend.
Confirmation of a newly saved feedback record.