Update Rating
PATCH /api/agents/learning/ratings/{operation_id}
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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” operation_id
required
Operation Id
string
Request Body required
Section titled “Request Body required ” 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.
Responses
Section titled “ Responses ”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>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context