🌐PATCH Request
Also known as PATCH, HTTP PATCH, PATCH Method
A web request that changes only part of a thing. You send just the changes.
Think of it like
Think of it like a sticker on a page. It fixes one word and keeps the rest.
Example
Lucy changes her city in an app. It sends a PATCH with only the city, and her name and email stay the same.
Why it matters
Small edits stay small. Two people who edit different fields do not undo each other.
Definition
Example code
http
PATCH /api/users/42 HTTP/1.1
Content-Type: application/json
{"city": "Bristol"}Common mistake
Key takeaways
- 1Changes a part. The rest stays.
- 2Send only changes. Smaller than PUT.
- 3Retry with care. Depends on the change.