Annotation objects for the specified indicator, in the order they are stored in the database.
Path parameters
The indicator’s unique identifier. Must be a valid MongoDB ObjectId (24-character hex string).
Response
Returns an array ofAnnotation objects. An empty array is returned when no annotations exist.
Unique identifier of the annotation (MongoDB ObjectId).
The ObjectId of the indicator this annotation belongs to.
Axis the annotation is drawn on. One of:
xaxis— a vertical line at a specific x value (typically a datetime)yaxis— a horizontal line at a specific y value
The position of the annotation line.
- For
xaxisannotations: an ISO 8601 datetime string (e.g.,"2024-06-01T00:00:00"). - For
yaxisannotations: a numeric value (e.g.,1500.0).
Human-readable label displayed next to the annotation line on the chart.
CSS hex color of the annotation line (e.g.,
"#FF5733"). Defaults to "#000000".Dash pattern for the annotation line.
0 renders a solid line. Positive integers set the dash length in pixels.Opacity of the annotation line, from
0.0 (transparent) to 1.0 (fully opaque). Defaults to 1.0.Error responses
| Status | Description |
|---|---|
400 Bad Request | indicator_id is not a valid ObjectId. |
Examples
Example response
200