What is the difference between PUT and POST method in API?
Loading
What is the difference between PUT and POST method in API?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dhanush KPosted May 1, 2022, 5:51 AM
POST means "creating new".
Eg: If we want to add new entry into a datasource, we use POST method to post the data
PUT means "insert, replace/update if already exists"
Eg: If we want to update the existing data or to replace/modify the data, we use PUT method
Anupam MaitiPosted May 2, 2022, 7:57 AM
Best expanantion can be found here -
https://stackoverflow.com/questions/630453/what-is-the-difference-between-post-and-put-in-http
Billy VenusPosted May 1, 2022, 5:52 AM