Overview
Update notes for a specific appointment in MediSync. This endpoint allows modification of existing notes by finding the appointment and updating the associated notes. All fields are optional and will preserve existing values if not provided.Appointment-Based Updates: This endpoint first finds the appointment by ID, then locates and updates the associated notes. The appointment ID in the URL is used to identify which appointment’s notes to update.
Authentication
Path Parameters
The appointment ID whose notes should be updated
Query Parameters
The user ID of the healthcare provider updating the notes
Body Parameters
Optional override for the appointment ID (will use existing value if not provided)
The clinical notes content to update (will preserve existing value if not provided)
The summary to update (will preserve existing value if not provided)
Response
Indicates if the operation was successful
The updated notes object
Error message if the operation failed
Example Response
Behavior Notes
- Two-Step Process: The endpoint first finds the appointment by ID, then locates the notes associated with that appointment
- Partial Updates: All body parameters are optional. Only provided fields will be updated, others will retain their existing values
- Automatic Timestamps: The
updatedAtfield is automatically updated when notes are modified - Preserves Existing Data: If a field is not provided in the request, its current value is preserved
Status Codes
- 200 - Notes updated successfully
- 400 - Invalid request data or database error
- 404 - Appointment or notes not found