Skip to main content
Deletes the specified annotation. The annotation must belong to the given indicator or the request is rejected with 404.

Path parameters

indicator_id
string
required
The indicator’s unique identifier. Must be a valid MongoDB ObjectId.
annotation_id
string
required
The annotation’s unique identifier. Must be a valid MongoDB ObjectId.

Response

200
{
  "message": "Annotation deleted successfully"
}

Error responses

StatusDescription
400 Bad RequestEither ID is not a valid ObjectId.
404 Not FoundThe 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

200
{
  "message": "Annotation deleted successfully"
}
404
{
  "detail": "Annotation not found"
}

Build docs developers (and LLMs) love