couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul C. Bryan" <>
Subject Re: JSON-Patch
Date Wed, 20 Apr 2011 20:07:48 GMT
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.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message