---
title: "Update Patient"
method: PUT
path: "/patients/{patient_id}"
tags: ["patients"]
---

# Update Patient

`PUT /patients/{patient_id}`

## Request

- Base URL: `https://api.alpha-grid.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alpha-grid.ai/patients/{patient_id}`
- Auth: HTTP bearer

Update patient details.

## Path parameters

- `patient_id` integer, required

## Request body

- PatientCreate
  - `name` string, required
  - `patient_identifier` string, nullable
  - `patient_identifier_type` string, nullable
  - `date_of_birth` string, date, nullable
  - `age_years` integer, nullable
  - `sex` string, nullable
  - `mobile` string, nullable
  - `email` string, nullable
  - `address` string, nullable
  - `diagnosis` string, nullable
  - `primary_physician` string, nullable
  - `notes` string, nullable
  - `branch_id` integer, nullable

## Response `200`

Successful Response

- PatientOut
  - `name` string, required
  - `patient_identifier` string, nullable
  - `patient_identifier_type` string, nullable
  - `date_of_birth` string, date, nullable
  - `age_years` integer, nullable
  - `sex` string, nullable
  - `mobile` string, nullable
  - `email` string, nullable
  - `address` string, nullable
  - `diagnosis` string, nullable
  - `primary_physician` string, nullable
  - `notes` string, nullable
  - `id` integer, required
  - `organization_id` integer, required
  - `branch_id` integer, required
  - `last_visit_at` string, date-time, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `severity` string, nullable: critical|high|normal|unknown
  - `severity_rank` integer, nullable
  - `severity_score` number, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev.md) - [All operations](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/llms.txt) - [OpenAPI document](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/revisions/13bab0bdd466?raw)
