What is the difference between PUT and PATCH?

REST API design and errors · Freshers

Model answer

PUT replaces a whole resource with the data you send. PATCH changes only the fields you send. In practice many APIs use PATCH for partial edits and PUT only when the client sends the full object.

Learn this topic

Build a REST API: Create, Read, Update and Delete Tasks in the course Node.js and Express: Build a Back End API from Scratch.

Sign in to add your own answer.

More questions