---
title: "Update patient attachment"
method: PATCH
path: "/patient_attachments/{id}"
tags: ["Patient Attachment"]
---

# Update patient attachment

`PATCH /patient_attachments/{id}`

## Path parameters

- `id` string, int64, required

## Request body

- union
  - FullPatientExportBody
    - `description` string, nullable
  - TreatmentNoteHistoryExportBody
    - `description` string, nullable
  - UploadedPatientAttachmentBody
    - `description` string, nullable

## Response `200`

Resource was updated

- union
  - object
    - `archived_at` string, date-time, nullable
    - `category` 'audio' | 'data' | 'document' | 'image' | 'other' | 'video', nullable
    - `content` object, nullable
      - `links` object
        - `self` string, uri
    - `content_type` string, nullable — mime type
    - `created_at` string, date-time
    - `description` string, nullable
    - `filename` string, nullable
    - `id` string, int64
    - `links` object
      - `self` string, uri
    - `patient` object
      - `links` object
        - `self` string, uri
    - `pinned_at` string, date-time, nullable
    - `processed_at` string, date-time, nullable
    - `processing_completed` boolean, nullable
    - `size` string, int64, nullable
    - `updated_at` string, date-time
    - `user` object
      - `links` object
        - `self` string, uri
  - object
    - `category` 'audio' | 'data' | 'document' | 'image' | 'other' | 'video', nullable
    - `content` object, nullable
      - `links` object
        - `self` string, uri
    - `content_type` string, nullable
    - `created_at` string, date-time
    - `description` string, nullable
    - `filename` string, nullable
    - `id` string, int64
    - `links` object
      - `self` string, uri
    - `patient` object
      - `links` object
        - `self` string, uri
    - `pinned_at` string, date-time, nullable
    - `processed_at` string, date-time, nullable
    - `processing_completed` boolean, nullable
    - `size` string, int64, nullable
    - `updated_at` string, date-time
  - object
    - `archived_at` string, date-time, nullable
    - `category` 'audio' | 'data' | 'document' | 'image' | 'other' | 'video', nullable
    - `content` object, nullable
      - `links` object
        - `self` string, uri
    - `content_type` string, nullable
    - `created_at` string, date-time
    - `description` string, nullable
    - `filename` string, nullable
    - `id` string, int64
    - `links` object
      - `self` string, uri
    - `patient` object
      - `links` object
        - `self` string, uri
    - `pinned_at` string, date-time, nullable
    - `processed_at` string, date-time, nullable
    - `processing_completed` boolean, nullable
    - `size` string, int64, nullable
    - `updated_at` string, date-time
    - `user` object
      - `links` object
        - `self` string, uri

## Other responses

- `422` — Resource could not be saved due to validation errors

## Changes

- **2026-08-24** `9c509c169ad8` — 9 warning, 9 info
  - added the new `document` enum value to the `anyOf[#/components/schemas/FullPatientExport]/category` response property for the response status `200`
  - added the new `document` enum value to the `anyOf[#/components/schemas/TreatmentNoteHistoryExport]/category` response property for the response status `200`
  - added the new `document` enum value to the `anyOf[#/components/schemas/UploadedPatientAttachment]/category` response property for the response status `200`
  - added the new `image` enum value to the `anyOf[#/components/schemas/FullPatientExport]/category` response property for the response status `200`
  - …14 more
- **2026-08-11** `79f172e1968d` — 4 info
  - added `#/components/schemas/TreatmentNoteHistoryExportBody` to the request body `anyOf` list
  - added `#/components/schemas/TreatmentNoteHistoryExport` to the response body `anyOf` list for the response status `200`
  - added the optional property `anyOf[#/components/schemas/FullPatientExport]/category` to the response with the `200` status
  - added the optional property `anyOf[#/components/schemas/UploadedPatientAttachment]/category` to the response with the `200` status

[Change history](https://skmtc.dev/cliniko/apis/cliniko-api/changes/patient_attachments/:id/patch.md)

---

[API](https://skmtc.dev/cliniko/apis/cliniko-api.md) · [All operations](https://skmtc.dev/cliniko/apis/cliniko-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cliniko/cliniko-api/revisions/6eeb88a96062/schema)
