I have read lots of places that HTTP Patch is non-idempotent. Can someone explain me why it is non-idempotent ? Because as per the definition - Idempotent methods may or may not change the resource state, but repeated requests should have no further side effects after the first request. How a repeated PATCH request can change the Resource state?
There's some confusion about that. The PATCH method is not required to be idempotent, that's the point. Clients can't assume their PATCH requests will be idempotent, as they can do with PUT and GET.
If a particular implementation will be idempotent or not usually depends on the patching algorithm being used, if any. For instance, a poor implementation that's not using a diff format that validates the current values won't be idempotent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With