API Design · Junior · Question 7 of 75
Which methods are idempotent by HTTP semantics?
- 1Only
POST - 2
POSTandPATCH - ✓Correct answer:
GET,PUT,DELETE(andHEAD,OPTIONS)
Explanation
Repeating an idempotent request has the same effect as sending it once, so clients can retry after a timeout.