only that’s incorrect. PUT replaces the whole item. PATCH updates the item in place.
2026-09-06 18:27:55
108
jitters :
Put is actually akin to Upsert by definition, not Update.
2026-09-07 01:30:55
0
Jay Spencer :
Don't forget the new QUERY method too :)
2026-09-06 22:16:20
9
kimofrost :
That’s not idempotency means, people tends to confuse it with Pure Function, idempotency does update the state of a resource, but for the same request it changes it once, any further request will not change it,
2026-09-06 16:35:00
25
CordyStackX :
I use Post for everything 😂😂😂
2026-09-06 15:11:38
56
csect :
just because it's idempotent, doesn't mean it's not an update. Feels pedantic for no reason
2026-09-06 21:25:51
14
epilanthanomai :
It's not so much that people ignored PATCH. It's more that PATCH wasn't formalized until 2010, long after most HTTP patterns for CRUD operations had been popularized.
2026-09-06 18:07:04
12
M.H :
Post GetUsers
Just leaving this here 🤣
2026-09-06 18:18:42
7
afkhalla :
I've never seen any production api, that has used more than get/post so far.
2026-09-06 22:34:25
1
Matt Parnell :
patch is still usable, but it's the backend that has to accept and handle it
2026-09-06 20:40:19
0
shepherd_n54 :
Wouldn’t the server return a 404 for an item that doesn’t exist for PUT?
2026-09-06 20:52:01
0
Aaron Cowie :
i dont think we need http methods at all.
2026-09-06 21:05:54
0
🤓' OR 1=1; DROP TABLES 🤓 :
Aren’t they all just suggestions? I make can a service where it’s all POSTs, even reads.
2026-09-06 20:40:29
0
Yehor Briz :
but if the comment doesn't exist, PUT should not be successful, the server must return 404, isn't it?
2026-09-06 16:47:27
2
ijuko67 :
post should be idempotent also
2026-09-06 21:24:02
0
shauny6983 :
Isn't it just a text string in the end? Can make up whatever you want in theory.
2026-09-06 20:31:59
1
robot_head_790 :
I just use post and get, with /update and /delete suffixes on the path. Not textbook but it does work.
2026-09-06 20:53:52
1
Guava :
A put acting as only an update would also be idempotent though? It would fail every time you call it.
2026-09-06 21:36:35
0
DonSimon :
PUT is not idempotent. PUT is useless 🪴
2026-09-06 20:39:07
7
haki :
There is now “QUERY”
2026-09-06 16:11:31
3
Alexius Vidalius :
Nope. PUT is the Correct VERB (Not "method" as you mention) to use for updating. BTW, PATCH is still in use. PUT is NOT similar to CREATE.
2026-09-06 22:06:53
1
sambelgembel :
just use POST for everything
2026-09-06 22:54:42
2
DragonBlade :
Patch, by specs, would create too
2026-09-07 00:18:31
1
@zo8953 :
PUT is older than PATCH. Check the RFC dates
2026-09-06 19:43:19
2
5Up :
Feels best to just think of it as a database. Get=SELECT, Post=INSERT, Put=MERGE/UPSERT, Delete=DELETE. done
2026-09-06 20:21:09
2
To see more videos from user @supabase.com, please go to the Tikwm
homepage.