Update a patient
Authorization
BearerAuth AuthorizationBearer <token>
Medblocks API key for server-side requests.
In: header
Path Parameters
id*string
Your patient_id from Patient creation or Session upsert.
Header Parameters
Version?string
Date-pinned API version. If omitted, Medblocks uses the version pinned on your API key.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/patients/string" \ -H "Version: 2026-04-25" \ -H "Content-Type: application/json" \ -d '{ "patient_id": "string" }'{ "id": "user_42", "resource_type": "patient", "email": "jane@example.com", "name": "Jane Doe", "metadata": { "plan": "premium" }, "created_at": "2026-04-25T14:30:00.000Z"}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "doc_url": "http://example.com", "request_id": "string" }}Non-2xx responses use the standard API error envelope. Log
error.code and error.request_id for support.patient_id*string
Must match the {id} URL param. 400 if mismatched. Immutable.
Length
1 <= length <= 200email?|
New email. Omit or pass null to clear.
name?|
New name. Omit or pass null to clear (UI falls back to the patient_id).
metadata?
New metadata. Omit to clear (replaced with {}).
