API design · Multiple choice

Which HTTP method is not idempotent by definition, so retrying it can create a second resource?

easy Resilience

Options

Why

PUT and DELETE leave the same state however often they are repeated. A retried POST can charge a card twice unless the API takes an idempotency key and remembers the requests it has already processed.

Review this in your daily deck All cards in API design