---
title: "Updates a referral using JSON Patch"
method: PATCH
path: "/referrals/{referralId}"
tags: ["Referrals"]
---

# Updates a referral using JSON Patch

`PATCH /referrals/{referralId}`

## Request

- Base URL: `https://api.alto.zoopladev.co.uk`
- URL: `https://api.alto.zoopladev.co.uk/referrals/{referralId}`
- Auth: `appAuth` (a scheme the document does not define)

## Path parameters

- `referralId` string, uuid, required

## Headers

- `AgencyRef` string, required

## Request body

- ReferralPatchOperation[]: Array of operations to perform
  - union
    - object: The status of the referral
      - `op` 'replace'
      - `value` string
      - `path` string
    - object: The fees amount of the referral
      - `op` 'replace'
      - `value` number
      - `path` string

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/alto/apis/alto-api.md) - [All operations](https://skmtc.dev/alto/apis/alto-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alto/apis/alto-api/revisions/1b729d9b15a8?raw)
