Feedback
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.
POST
/
v1
/
feedback
curl --request POST \
--url https://api.githits.dev/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accepted": true,
"feedback_text": null
}
'{
"accepted": true,
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"target_type": "session"
}Authorizations
Headers
Required exactly once when solution_id is omitted: identifies the session to rate. Must match [A-Za-z0-9_-]{1,64} and is preserved exactly. For solution feedback, this header is optional client attribution; invalid supplied IDs return 400 INVALID_SESSION_ID.
Required string length:
1 - 64Pattern:
^[A-Za-z0-9_-]{1,64}$Body
application/json
Append a decision to one solution or a caller-supplied session.
Response
A new feedback record was saved. Feedback records are append-only.
Confirmation of a newly saved feedback record.
⌘I
curl --request POST \
--url https://api.githits.dev/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accepted": true,
"feedback_text": null
}
'{
"accepted": true,
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"target_type": "session"
}