---
title: "Update document metadata or sharing (FOOD-1379)"
method: PATCH
path: "/patients/{patient_id}/documents/{document_id}"
tags: ["patients"]
---

# Update document metadata or sharing (FOOD-1379)

`PATCH /patients/{patient_id}/documents/{document_id}`

## Request

- Base URL: `https://api.rxfoodapp.com/api`
- URL: `https://api.rxfoodapp.com/api/patients/{patient_id}/documents/{document_id}`
- Auth: HTTP bearer

## Path parameters

- `patient_id` integer, required
- `document_id` integer, required

## Request body

- PatchPatientDocumentRequest
  - `note` string, nullable
  - `title` string, nullable
  - `visible_to_patient` boolean, nullable

## Response `200`

successful operation

- PatientDocumentResponse
  - `content_type` string, required
  - `created_time` string, date-time, required
  - `filename` string, required
  - `hospital_id` integer, required
  - `id` integer, required
  - `note` string, nullable
  - `patient_id` integer, required
  - `size_bytes` integer, required
  - `title` string, nullable
  - `updated_time` string, date-time, required
  - `uploaded_by_role` 'clinician' | 'patient' | 'internal', required
  - `uploaded_by_user_id` integer, required
  - `visible_to_patient` boolean, required

## Changes

- **2026-10-02** `c3d8e22b22e8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/changes/patients/:patient_id/documents/:document_id/patch.md)

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) - [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) - [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/c3d8e22b22e8?raw)
