News for hackers. Stuff that matters.
Re:Difference between PUT vs. POST from a system administrat... by dexwiz on Saturday October 14, 2023 @01:52AM (#37878390)
POST is usually creation, but may be any arbitrary request that needs to provide a body. PUT is replacement and PATCH is update. Functionally that means PATCH can usually update a subset of fields while PUT replaces all fields and unsets any not provided.

But it’s all up to the implementation. I regularly see them misused or everything is a POST. At then end of the day they are functionally equivalent. Idempotency is not often considered outside of specific cases like payment.

There are no comments on this comment yet.