You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2016/09/07 09:54:48 UTC

[2/3] documentation commit: updated refs/heads/master to 57741f6

Explain the new_edits=false option when PUTing a document

Fixes COUCHDB-3136.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/c406ac7d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/c406ac7d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/c406ac7d

Branch: refs/heads/master
Commit: c406ac7d30216b14e907f6c96ea73fe6b141ad7b
Parents: 6c7ba78
Author: Samuel Tardieu <sa...@rfc1149.net>
Authored: Wed Sep 7 09:14:04 2016 +0200
Committer: Samuel Tardieu <sa...@rfc1149.net>
Committed: Wed Sep 7 09:14:04 2016 +0200

----------------------------------------------------------------------
 src/api/document/common.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/c406ac7d/src/api/document/common.rst
----------------------------------------------------------------------
diff --git a/src/api/document/common.rst b/src/api/document/common.rst
index 249de7e..117412d 100644
--- a/src/api/document/common.rst
+++ b/src/api/document/common.rst
@@ -185,7 +185,13 @@
       :config:option:`commit policy <couchdb/delayed_commits>`. Possible values
       are: ``false`` and ``true``. *Optional*
     :query string batch: Stores document in :ref:`batch mode
-      <api/doc/batch-writes>` Possible values: ``ok``. *Optional*
+      <api/doc/batch-writes>`. Possible values: ``ok``. *Optional*
+    :query boolean new_edits: Prevents insertion of a :ref:`conflicting
+      document <replication/conflicts>`. Possible values: ``true`` (default)
+      and ``false``. If ``false``, a well-formed ``_rev`` must be included in
+      the document. ``new_edits=false`` is used by the replicator to insert
+      documents into the target database even if that leads to the creation
+      of conflicts. *Optional*
     :>header Content-Type: - :mimetype:`application/json`
                            - :mimetype:`text/plain; charset=utf-8`
     :>header ETag: Quoted document's new revision