PATCH semantics — only fields included in the request body are modified. Returns the updated Annotation object.
Path parameters
The indicator’s unique identifier. Must be a valid MongoDB ObjectId.
The annotation’s unique identifier. Must be a valid MongoDB ObjectId.
Request body
All fields are optional. Omit fields you do not want to change.New position for the annotation line.
- For
xaxisannotations: an ISO 8601 datetime string. - For
yaxisannotations: a numeric value.
New label text.
New CSS hex color (e.g.,
"#3498DB").New dash pattern.
0 for solid line.New opacity, from
0.0 to 1.0.Response
Returns the full updatedAnnotation object.
Annotation identifier.
The ObjectId of the parent indicator.
xaxis or yaxis. The type cannot be changed after creation.Updated annotation position.
Updated label.
Updated hex color.
Updated dash length.
Updated opacity.
Error responses
| Status | Description |
|---|---|
400 Bad Request | Either ID is not a valid ObjectId, or value cannot be parsed. |
404 Not Found | The annotation does not exist or does not belong to the specified indicator. |
Examples
Example response
200
404