---
title: "Update the description on a referral document (RDVM can only update their own uploads)"
method: PATCH
path: "/public/rdvm/referrals/{referralId}/documents/{documentId}"
tags: ["RdvmPortal"]
---

# Update the description on a referral document (RDVM can only update their own uploads)

`PATCH /public/rdvm/referrals/{referralId}/documents/{documentId}`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/public/rdvm/referrals/{referralId}/documents/{documentId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/public/rdvm/referrals/:referralId/documents/:documentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `referralId` string, required
- `documentId` string, required

## Query parameters

- `sessionId` string
- `clinicId` string

## Request body

- UpdateReferralDocumentRequest
  - `description` string, nullable

## Response `200`

OK

- RdvmDocumentDto
  - `id` string
  - `referralId` string
  - `documentType` string
  - `fileName` string
  - `description` string, nullable
  - `fileSizeBytes` union
    - integer
    - string, int64
  - `mimeType` string, nullable
  - `uploadedByName` string, nullable
  - `uploadedAt` string, date-time
  - `isSent` boolean
  - `sentAt` string, date-time, nullable
  - `source` string
  - `canDelete` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
