On Wed, 2011-04-20 at 21:59 +0200, Aurélien Bénel wrote:

> True, PATCH could be idempotent... It just depends on your patch format. 



It depends less on your patch format, and more on the reliance on
preconditions (e.g. If-Match, If-Not-Match).


> I just had a look at your patch operations specification:
> - When you add or remove a key/value, this is idempotent.
> - However, when you add or remove an array element based on an index, this is 
> not.



HTTP PATCH idempotency is for the entire resource being modified. It
intends the whole patch document to be applied or not.

Paul

Reply via email to