Update a health record
Edits a health record, for example to record the outcome or resolution date of an illness. Only the fields you send change; null clears an optional field. Team members may edit only records they logged; owners and admins may edit any.
bearerAuthAuthorizationBearer <token>A Clerk user API key or OAuth access token carrying the falconry:read and/or falconry:write scope.
healthRecordId*stringA health record's id, from list_health_records.
length <= 64application/json- body
recordType?string"observation""treatment""vet_visit""vaccination""injury""illness""medication""lab_result""parasite_check""moult_note"recordDate?stringISO 8601 date (yyyy-mm-dd).
^\d{4}-\d{2}-\d{2}$symptom?|nullsymptomSeverity?|nulldiagnosis?|nulltreatment?|nullmedicationName?|nulldosage?|nullfrequency?|nulldurationDays?|nulloutcome?|nullvetName?|nullvetClinic?|nullvetContact?|nullnextAppointmentDate?|nullresolutionDate?|nullnotes?|nullUpdate a health record
application/json- response
id*stringOpaque Convex document id.
length <= 64raptorId*stringOpaque Convex document id.
length <= 64recordType*string"observation""treatment""vet_visit""vaccination""injury""illness""medication""lab_result""parasite_check""moult_note"recordDate*stringISO 8601 date (yyyy-mm-dd).
symptom*string|nullsymptomSeverity*|nulldiagnosis*string|nulltreatment*string|nullmedicationName*string|nulldosage*string|nullfrequency*string|nulldurationDays*number|nullvetName*string|nullvetClinic*string|nullvetContact*string|nullnextAppointmentDate*string|nullresolutionDate*string|nulloutcome*|nullnotes*string|nullattachments*array<>loggedByName*string|nullcurl -X PATCH 'https://app.falconryscale.com/api/v1/health-records/string' \
-H 'Content-Type: application/json' \
-d '{}'{
"id": "string",
"raptorId": "string",
"recordType": "observation",
"recordDate": "string",
"symptom": "string",
"symptomSeverity": "mild",
"diagnosis": "string",
"treatment": "string",
"medicationName": "string",
"dosage": "string",
"frequency": "string",
"durationDays": 0,
"vetName": "string",
"vetClinic": "string",
"vetContact": "string",
"nextAppointmentDate": "string",
"resolutionDate": "string",
"outcome": "resolved",
"notes": "string",
"attachments": [
{
"fileName": "string",
"mimeType": "string",
"fileSizeBytes": 0
}
],
"loggedByName": "string"
}Get one health record
Returns one health record by id. 404s if it does not exist or is not visible to the caller.
Delete a health record
Permanently deletes a health record AND its attached files. This cannot be undone. Before calling, read the record back to the user (type, date, raptor, and how many attachments it has) and get their explicit confirmation.