---
title: "Comment by Yash Kadiya on \"What You Need To Know About API\" | Hashnode"
description: "good explanation! Can you share diff between POST and PUT?"
url: "https://hashnode.com/posts/what-you-need-to-know-about-api/64f370f37deff53e0e3baef2/comment/64f4300d6ca042857b4538a4"
---

[Discussion](https://hashnode.com/posts/what-you-need-to-know-about-api/64f370f37deff53e0e3baef2)

Comment [What You Need To Know About API](https://hashnode.com/posts/what-you-need-to-know-about-api/64f370f37deff53e0e3baef2)

[Yash Kadiya](https://hashnode.com/@yashgk)

[Sep 3, 2023](https://hashnode.com/posts/what-you-need-to-know-about-api/64f370f37deff53e0e3baef2/comment/64f4300d6ca042857b4538a4)

good explanation! Can you share diff between POST and PUT?

[Oladoyin Idris](https://hashnode.com/@Oladris)

[Sep 3, 2023](https://hashnode.com/posts/what-you-need-to-know-about-api/64f370f37deff53e0e3baef2/comment/64f4300d6ca042857b4538a4#reply-64f445176ca042857b453b66)

Thanks.

POST creates a new resource on the backend (server). You send data to the server in the request body.

PUT can update an existing resource by sending the updated data as the content of the request body to the server
