Update a medication course
Edits a medication course, for example to change the dosage or set an end date to finish it. Only the fields you send change; null clears an optional field.
bearerAuthAuthorizationBearer <token>A Clerk user API key or OAuth access token carrying the falconry:read and/or falconry:write scope.
medicationId*stringA medication course's id, from list_medications.
length <= 64application/json- body
name?string1 <= length <= 200dosage?stringlength <= 200frequency?stringlength <= 200startDate?stringISO 8601 date (yyyy-mm-dd).
^\d{4}-\d{2}-\d{2}$endDate?|Set to end the course; null makes it open-ended again.
reminderEnabled?booleanreminderTime?|nulllinkedHealthRecordId?|nullnotes?|nullUpdate a medication course
application/json- response
id*stringOpaque Convex document id.
length <= 64raptorId*stringOpaque Convex document id.
length <= 64name*stringdosage*stringfrequency*stringstartDate*stringISO 8601 date (yyyy-mm-dd).
endDate*|ISO 8601 date, or null for an open-ended course.
reminderEnabled*booleanreminderTime*|Daily reminder time, HH:MM (24-hour).
linkedHealthRecordId*|nullnotes*string|nulldoseLog*array<>Logged doses, one per day, newest first (at most the last 60).
loggedByName*string|nullcurl -X PATCH 'https://app.falconryscale.com/api/v1/medications/string' \
-H 'Content-Type: application/json' \
-d '{}'{
"id": "string",
"raptorId": "string",
"name": "string",
"dosage": "string",
"frequency": "string",
"startDate": "string",
"endDate": "string",
"reminderEnabled": true,
"reminderTime": "string",
"linkedHealthRecordId": "string",
"notes": "string",
"doseLog": [
{
"date": "string",
"status": "taken",
"loggedAt": "string"
}
],
"loggedByName": "string"
}Get one medication course
Returns one medication course by id, with its dose log. 404s if it does not exist or is not visible to the caller.
Delete a medication course
Permanently deletes a medication course and its whole dose log. This cannot be undone. To simply finish a course, set its endDate with update_medication instead. Before deleting, confirm the course (name, raptor, dates) with the user.