Update the markdown content of an existing doctor letter in MediSync. This endpoint allows manual editing of AI-generated doctor letters, enabling healthcare providers to customize or correct the letter content before sending.
Manual Letter Editing: This endpoint enables manual editing of doctor letter content. When updated, the letter status is set to “editing” and any previous errors are cleared.
curl -X PUT \ 'https://api.medisync.com/doctor-letters/letter_def456?uid=doc_xyz789' \ -H 'Authorization: Bearer YOUR_JWT_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "markdown_content": "# Updated Medical Referral Letter\n\n**Date:** 2024-01-15\n\n**To:** Dr. Sarah Johnson, Cardiology Specialist\n**From:** Dr. Michael Chen, Internal Medicine\n\n**Re:** John Smith (DOB: 1975-08-15)\n\n## Updated Clinical Summary\n\nI am referring Mr. Smith for urgent cardiology evaluation...\n\nThank you for your prompt attention.\n\nDr. Michael Chen, MD" }'