Create Annotation
Create or update an annotation.
Creates a new annotation or updates an existing one with the specified criteria and values.
For a given combination of type, reference, and annotation_criteria, this endpoint will not
create multiple objects but will update the existing annotation if one already exists.
At least one of value_pass, value_score, or value_text must be provided. The annotation
will be associated with reference object.
Examples:
Create a span annotation
Create a boolean annotation for log
Create a text annotation for evaluation
v1
/annotations
Authorization
X-API-KEY
<token>
In: header
Request Body
application/json
Requiredannotation_criteria
RequiredAnnotation Criteria
Reference to the annotation criteria to use for this annotation
"uuid"
type
RequiredAnnotationType
Type of the object being annotated (trace, span, log, evaluation or trace_insight)
"trace" | "span" | "log" | "trace_insight" | "evaluation"
reference
RequiredReference
Reference identifier to the object being annotated.
value_pass
Value Pass
Boolean value indicating whether the annotation passed or failed a criteria
value_score
Value Score
Numerical score value for the annotation
value_text
Value Text
Textual value or content for the annotation
explanation
Explanation
Optional explanation or reasoning for the annotation
Successful Response