Users
Current-user profile, role assignment (admin only), and profile updates (timezone, locale, DOB, clinical specialty).
Revoke a grant (patient) POST
Revoke an active or pending grant. The clinician immediately loses access. The patient can revoke any grant on their data; the clinician holding a grant may also end it.
Complete onboarding (self-service role selection) POST
One-time, self-service equivalent of `/users/role` for a user's own account. Lets a newly-registered user pick their role (patient, doctor, clinic_staff, or clinic_admin) once, right after sign-up. `admin` and `researcher` can't be self-assigned here — an existing admin must grant those via `/users/role`. Fails with 409 if this account has already completed onboarding; use `/users/role` (admin-only) to change role after that point.