Understanding the Distinction: PUT vs. PATCH in API Design

16 · Vicente G. Reyes · Nov. 14, 2023, 4:38 p.m.
Summary
I got asked about the difference with PUT and PATCH in my interview earlier which made me write this article about the difference between the two. In the context of APIs, both PATCH and PUT are HTTP methods used to update resources, but they are used in slightly different ways. PUT Method: The PUT method is used to update a resource or create a new resource if it doesn't exist at the specified URL. When you use PUT to update a resource, you typically send the full representation of the resour...