Difference between Put & Patch method

Forums .NETDifference between Put & Patch method
Staff asked 4 weeks ago

Answers (1)

Add Answer
monika gabani Marked As Accepted
Staff answered 4 weeks ago

PUT and PATCH requests are HTTP verbs and both relate to updating the resources at a location.

PUT PATCH
PUT is a method of modifying resource where the client sends data that updates the entire resource .

PATCH is a method of modifying resources where the client sends partial data that is to be updated without modifying the entire data.

In HTTP PUT, if you send retry a request multiple times, that should be equivalent to a single request modification

In HTTP PATCH, if you retry the request N times, you will end up having N resources with N different URIs created on the server.

When a client needs to replace an existing Resource entirely, they can use PUT.

When client needs to replace only few portion of resources without replacing whole, they can use HTTP PATCH.

It has High Bandwidth

It has Low Bandwidth

Subscribe

Select Categories