Post vs Put
Options
![FJP H](https://us.v-cdn.net/6037124/user_avatars/2387640.jpg)
FJP H
Member ✭
I am just curious, why is XANO by default generating a POST endpoint to update/edit an object instead of making use of the PUT method.
Comments
-
HTTP verbs are a matter of preference and it is up to the user to decide how they want to use them. The PUT verb is intended to be used for replacing an object in its entirety. The POST verb is a more universal solution for updates since a lot of the time more functionality is happening than a complete object replacement.
For example, one of the world's biggest payment vendors, Stripe, uses POST to update a subscription - Stripe API reference – Update a subscription -
Thanks!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback