Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 96041 invoked from network); 7 Mar 2009 03:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2009 03:09:14 -0000 Received: (qmail 30554 invoked by uid 500); 7 Mar 2009 03:09:14 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 30524 invoked by uid 500); 7 Mar 2009 03:09:14 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 30515 invoked by uid 500); 7 Mar 2009 03:09:14 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 30512 invoked by uid 99); 7 Mar 2009 03:09:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 19:09:14 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO aurora.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2009 03:09:13 +0000 Received: from aurora.apache.org (localhost [127.0.0.1]) by aurora.apache.org (8.13.8+Sun/8.13.8) with ESMTP id n2738p8T006857 for ; Sat, 7 Mar 2009 03:08:52 GMT Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Sat, 07 Mar 2009 03:08:51 -0000 Message-ID: <20090307030851.6721.94576@aurora.apache.org> Subject: [Couchdb Wiki] Update of "HTTP Document API" by RobertSchonberger X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification. The following page has been changed by RobertSchonberger: http://wiki.apache.org/couchdb/HTTP_Document_API ------------------------------------------------------------------------------ {"ok": true, "id": "some_doc_id", "rev": "946B7D1C"} }}} - To update an existing document, you also issue a ''PUT'' request. In this case, the JSON body must contain a ''_rev'' property, which lets CouchDB know which revision the edits are based on. If the revision of the document currently stored in the database doesn't match, then a ''409'' conflict error is returned. + To update an existing document, you also issue a ''PUT'' request. In this case, the JSON body must contain a ''_rev'' property, which lets CouchDB know which revision the edits are based on. If the revision of the document currently stored in the database doesn't match, then a ''412'' conflict error is returned. If the revision number does match what's in the database, a new revision number is generated and returned to the client.