Skip to content

Submit Run Feedback

POST /runs/{run_id}/feedback

Upsert per user. 200 rather than 201: the second call updates a row it did not create, and answering 201 both times would tell a client it made two ratings.

NameInTypeNotes
run_idpathstring (uuid)required—
FieldTypeNotes
ratingup | downrequired—
categoriesstring[]optional—
commentstring | nulloptionalmax length 4000
StatusDescriptionBody
200Successful ResponseFeedbackView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/runs/{run_id}/feedback \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rating": "up"
}'
FieldTypeNotes
idstring (uuid)required—
run_idstring (uuid)required—
agent_idstring (uuid)required—
session_idstring (uuid) | nulloptional—
user_idstring (uuid) | nulloptional—
ratingup | downrequired—
categoriesobject[]optional—
commentstring | nulloptional—
sourcestringrequired—
created_atstring (date-time)required—
updated_atstring (date-time)required—