curl --request PUT \
--url https://api.example.com/cases/cases/{case_id} \
--header 'Content-Type: application/json' \
--data '
{
"patient_name": "<string>",
"patient_age": 123,
"case_summary": "<string>",
"status": "<string>"
}
'{
"message": "<string>",
"case": {
"case.case_id": 123,
"case.user_id": "<string>",
"case.patient_name": "<string>",
"case.patient_age": 123,
"case.patient_gender": "<string>",
"case.case_summary": "<string>",
"case.status": "<string>",
"case.created_at": "<string>",
"case.updated_at": "<string>"
},
"400 Bad Request": {},
"404 Not Found": {},
"500 Internal Server Error": {}
}Update information for an existing medical case
curl --request PUT \
--url https://api.example.com/cases/cases/{case_id} \
--header 'Content-Type: application/json' \
--data '
{
"patient_name": "<string>",
"patient_age": 123,
"case_summary": "<string>",
"status": "<string>"
}
'{
"message": "<string>",
"case": {
"case.case_id": 123,
"case.user_id": "<string>",
"case.patient_name": "<string>",
"case.patient_age": 123,
"case.patient_gender": "<string>",
"case.case_summary": "<string>",
"case.status": "<string>",
"case.created_at": "<string>",
"case.updated_at": "<string>"
},
"400 Bad Request": {},
"404 Not Found": {},
"500 Internal Server Error": {}
}curl -X PUT "https://api.medmitra.com/cases/cases/12345" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"case_summary": "Patient shows improvement after initial treatment. Follow-up recommended.",
"status": "completed"
}'
{
"message": "Case updated successfully",
"case": {
"case_id": 12345,
"user_id": "b8acad4b-4944-4d66-b405-de70886e7248",
"patient_name": "John Doe",
"patient_age": 45,
"patient_gender": "male",
"case_summary": "Patient shows improvement after initial treatment. Follow-up recommended.",
"status": "completed",
"created_at": "2026-03-04T10:30:00Z",
"updated_at": "2026-03-04T15:20:00Z"
}
}
{
"detail": "No data provided for update"
}
{
"detail": "Supabase client error message"
}
{
"detail": "Case not found"
}
{
"detail": "Internal server error: {error details}"
}
null values are excluded from the updateupdated_at timestamp is automatically set to the current time