Update Annotation
Updates an existing annotation's properties such as rating, type, expected output/outcome, explanation, or flagged status.
**Validation rules:**
- Thread annotations cannot have `expectedOutput` (use `expectedOutcome` instead)
- Trace/span annotations cannot have `expectedOutcome` (use `expectedOutput` instead)
- The annotation must belong to your project
Path parameters
annotationId
The ID of the annotation to update.
Headers
CONFIDENT_API_KEY
The API key of your Confident AI project.
Request
This endpoint expects an object.
rating
Updated rating score. Must be 0 or 1 for THUMBS_RATING, 1-5 for FIVE_STAR_RATING.
type
Updated annotation type.
Allowed values:
expectedOutput
Updated expected output for trace/span annotations.
expectedOutcome
Updated expected outcome for thread annotations.
explanation
Updated explanation for the annotation.
flagged
Updated flagged status.
Response
Successfully updated annotation
success
This is true if the annotation was successfully updated.
data
This maps to the id of the updated annotation.
deprecated
This is true if this endpoint is deprecated.