Skip to content

Update Rating

PATCH
/api/agents/learning/ratings/{operation_id}

Edit an existing user rating (flip verdict, change feedback, or both).

Authors change their mind — bad at commit time can become necessary two days later once the consequences play out. Patching preserves the original timestamp so trend analysis stays intact; a delete-and-resubmit would reset it.

operation_id
required
Operation Id
string
UpdateRatingRequest

PATCH /api/agents/learning/ratings/{operation_id}.

Only the rating verdict and feedback can be patched — agent_name and operation_id are immutable identity fields. Either field is optional so authors can retract just the feedback text, or just flip the verdict, without having to resubmit both.

object
rating
Any of:
string
Allowed values: good bad premature necessary
feedback
Any of:
string

Successful Response

SubmitRatingResponse

POST /api/agents/learning/ratings response.

object
success
required
Success
boolean
message
required
Message
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object