What is a PUT HTTP Request?
PUT is a technique of creating, changing or overwriting resources at a specific URL. The PUT method is generally called when we need to change a single resource.
What is a PATCH HTTP Request?
The PATCH method is used for making partial modifications to a current resource without changing the whole data.
Difference Between PUT and PATCH Request
S.No. | PUT | PATCH |
1 | PUT is a technique of altering resources when the client transmits data that revamps the whole resource. | PATCH is a technique for transforming the resources when the client transmits partial data that will be updated without changing the whole data. |
2 | The PUT HTTP method is known to be unchanged. That means, if you retry a request numerous times, that will be equal to a single request conversion. | The PATCH HTTP method is believed to be non-idempotent. That means, if you retry the request multiple times, you will end up having multiple resources with different URIs. |
3 | The PUT method has high bandwidth. | Whereas, the PATCH method has comparatively low bandwidth. |
Keep learning and stay tuned to BYJU’S to get the latest updates on GATE Exam along with GATE Eligibility Criteria, GATE 2024, GATE Admit Card, GATE Application Form, GATE Syllabus, GATE Cutoff, GATE Previous Year Question Paper, and more.
Comments