Question · NestJS course · Module 2: Routing and Request Lifecycle

HTTP PUT vs PATCH Method

What is the difference between the HTTP PUT and PATCH methods?

Answer options

  • PUT is faster than PATCH
  • PATCH creates a new resource, PUT updates
  • PUT replaces the entire resource, PATCH partially updates it
  • There is no difference, they are identical
Show the answer

Correct answer:

  • PUT replaces the entire resource, PATCH partially updates it