# PATCH Request

> A web request that changes only part of a thing. You send just the changes.

**Field:** Infrastructure  
**Category:** Networking  
**Also known as:** PATCH, HTTP PATCH, PATCH Method

## Think of it like

Think of it like a sticker on a page. It fixes one word and keeps the rest.

## Definition

A PATCH request changes only part of a thing on the server. You send just the fields you want to change, and the rest stays as it was. That makes requests smaller than a PUT, which sends the whole thing. Whether sending the same PATCH twice is safe depends on how it is written. Setting a field is safe to repeat; adding one to a counter is not.

## Example

Lucy changes her city in an app. It sends a PATCH with only the city, and her name and email stay the same.

## Example code

```http
PATCH /api/users/42 HTTP/1.1
Content-Type: application/json

{"city": "Bristol"}
```

Only the city is sent, and only the city changes.

## Why it matters

Small edits stay small. Two people who edit different fields do not undo each other.

## Common mistake

Assuming every PATCH is safe to retry. A PATCH that adds to a balance adds twice.

## Three principles

- **Changes a part.** The rest stays.
- **Send only changes.** Smaller than PUT.
- **Retry with care.** Depends on the change.

## Related terms

- [PUT Request](https://learn.benibix.com/term/infrastructure/put-request)
- [HTTP Method](https://learn.benibix.com/term/infrastructure/http-method)
- [Request Body](https://learn.benibix.com/term/infrastructure/request-body)
- [Idempotency](https://learn.benibix.com/term/development/idempotency)

## Told apart from

- [PUT vs PATCH](https://learn.benibix.com/compare/put-vs-patch): A PUT request replaces the whole thing on the server with the full copy you send. A PATCH request changes only the fields you send. A PUT that leaves out a field may wipe it, while a PATCH leaves it alone.

## Taught in

- [HTTP Methods: GET vs POST](https://learn.benibix.com/learn/infrastructure-networking/http-methods-get-vs-post): Computer Networking, 10/13

---

Source: https://learn.benibix.com/term/infrastructure/patch-request
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
