Sobes.tech
Middle

Which REST methods are non-idempotent?

sobes.tech AI

Answer from AI

In REST, methods are considered idempotent if repeated calls with the same parameters do not change the server's state after the first request.

Idempotent methods:

  • GET
  • PUT
  • DELETE
  • HEAD
  • OPTIONS

Non-idempotent method:

  • POST

POST is used to create new resources or perform operations that change the server's state and may create duplicates or have other side effects when called repeatedly. Therefore, POST is not considered idempotent.

Which REST methods are non-idempotent? — System Analyst - sobes.tech