Idempotent

API Testing

// Definition

An operation is idempotent if calling it multiple times produces the same result as calling it once. In REST, GET, PUT, DELETE, and HEAD are designed to be idempotent; POST is not. Idempotency matters for testing because you can safely retry a failed test step without fear of side effects. It also matters for test design: idempotent API calls make it straightforward to reset state between test runs.

// Related terms