📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials API Design HTTP Methods

HTTP Methods

5 min read Quiz at the end
GET/POST/PUT/PATCH/DELETE — understand safety, idempotency, and when to use each HTTP method.

HTTP Methods

MethodActionIdempotent?Safe?
GETReadYesYes
POSTCreateNoNo
PUTReplaceYesNo
PATCHPartial updateNoNo
DELETERemoveYesNo
# Safe = no side effects
# Idempotent = same result no matter how many times called

PUT /users/1 {name:Bob,email:b@c.com}  # full replace
PATCH /users/1 {name:Bob}              # partial update
Topic Quiz · 2 questions

Test your understanding before moving on

1. Which HTTP method is both safe AND idempotent?
💡 GET is safe (no side effects) and idempotent (same result no matter how many times called).
2. What does idempotent mean for an HTTP method?
💡 Idempotent operations can be retried safely — GET, PUT, DELETE are idempotent; POST is not.