You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fl...@apache.org on 2017/11/28 17:28:05 UTC
[couchdb-documentation] 02/02: Mention the possibility of
multipart/related in the PUT /{doc} description
This is an automated email from the ASF dual-hosted git repository.
flimzy pushed a commit to branch putType
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
commit 515c8b4e744a3900a9792d132c0eb41adedf1a7d
Author: Jonathan Hall <fl...@flimzy.com>
AuthorDate: Tue Nov 28 17:59:58 2017 +0100
Mention the possibility of multipart/related in the PUT /{doc} description
---
src/api/document/common.rst | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/api/document/common.rst b/src/api/document/common.rst
index 3f381e0..0494e6f 100644
--- a/src/api/document/common.rst
+++ b/src/api/document/common.rst
@@ -180,14 +180,17 @@
:param db: Database name
:param docid: Document ID
+
:<header Accept: - :mimetype:`application/json`
- :mimetype:`text/plain`
- :<header Content-Type: :mimetype:`application/json`
+ :<header Content-Type: - :mimetype:`application/json`
+ - :mimetype:`multipart/related`
:<header If-Match: Document's revision. Alternative to `rev` query
parameter or document key. *Optional*
:<header X-Couch-Full-Commit: Overrides server's
:config:option:`commit policy <couchdb/delayed_commits>`. Possible values
are: ``false`` and ``true``. *Optional*
+
:query string rev: Document's revision if updating an existing document.
Alternative to `If-Match` header or document key. *Optional*
:query string batch: Stores document in :ref:`batch mode
@@ -198,6 +201,7 @@
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
@@ -205,6 +209,7 @@
:>json string id: Document ID
:>json boolean ok: Operation status
:>json string rev: Revision MVCC token
+
:code 201: Document created and stored on disk
:code 202: Document data accepted, but not yet stored on disk
:code 400: Invalid request body or parameters
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.