What is the main difference between PATCH and PUT request?

Published Sep 11, 2017

Put :
if i want to change myfirst name then send put request for Update

{ "first": "Nazmul", "last": "hasan" } 

but here has one problem is put request that when i want to send put request i have to send all two parameters that is first and last
so it is mandatory to send all value again

Patch :
patch request says . only send the data which one you want to update and it won't effecting or changing other data .
so no need to send all value again . just i want to update my first name so i need to send only first name to update .

Discover and read more posts from Nazmul Hasan
get started
Enjoy this post?

Leave a like and comment for Nazmul

1
Be the first to share your opinion

Get curated posts in your inbox

Read more posts to become a better developer