Deletes the specified annotation. The annotation must belong to the given indicator or the request is rejected with 404.
Path parameters
The indicator’s unique identifier. Must be a valid MongoDB ObjectId.
The annotation’s unique identifier. Must be a valid MongoDB ObjectId.
Response
{
"message": "Annotation deleted successfully"
}
Error responses
| Status | Description |
|---|
400 Bad Request | Either ID is not a valid ObjectId. |
404 Not Found | The annotation does not exist or does not belong to the specified indicator. |
Deletion is permanent and cannot be undone. The endpoint returns 404 both when the annotation is not found and when it belongs to a different indicator.
Examples
curl -X DELETE \
"https://api.example.com/indicators/64b1f2c3d4e5f6a7b8c9d0e1/annotations/64c2f3a1b5e6d7f8e9a0b1c2"
Example response
{
"message": "Annotation deleted successfully"
}
{
"detail": "Annotation not found"
}