Phase 2 part 4: Split reading progress and annotation endpoints - Progress: get_progress, update_progress, delete_progress - Notes: get_notes, create_note, update_note, delete_note - Highlights: get_highlights, create_highlight, update_highlight, delete_highlight - All endpoints support EPUB CFI and percentage locations
890 B
890 B
Delete Highlight
Delete a highlight.
Endpoint: DELETE /api/media-items/highlights/{highlight_id}
Auth: Required
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| highlight_id | string | Yes | Highlight UUID |
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
Example Request
DELETE /api/media-items/highlights/uuid
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Response (204 No Content)
Highlight deleted successfully.
Error Responses
| Code | Description |
|---|---|
| 401 | Invalid or expired token |
| 403 | User does not own this highlight |
| 404 | Highlight not found |