Skip to main content

Overview

Delete notes from MediSync by their unique notes ID. This endpoint performs a hard deletion of the specified notes record from the database.
Permanent Deletion: This operation permanently removes the notes record from the database. This action cannot be undone.

Authentication

curl -X DELETE \
  'https://api.medisync.com/notes/notes_def456?uid=doc_xyz789' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN'

Path Parameters

id
string
required
The unique notes ID to delete (not the appointment ID)

Query Parameters

uid
string
required
The user ID of the healthcare provider deleting the notes

Response

success
boolean
Indicates if the operation was successful
error
string
Error message if the operation failed

Example Response

{
  "success": true
}

Behavior Notes

  • Direct ID Deletion: This endpoint deletes notes by their specific notes ID, not by appointment ID
  • Permanent Deletion: The notes are permanently removed from the database using findByIdAndDelete
  • No Soft Delete: There is no soft delete functionality - records are completely removed
  • No Cascade Effects: Deleting notes does not affect associated appointments or other records

Status Codes

  • 200 - Notes deleted successfully
  • 400 - Invalid request or database error
  • 404 - Notes not found