title: How to do partial update of a document
body: <p>I need a guidance on how can I update a field in CouchDB. I tried curl via console it works fine but programatically. I don't understand how to update a particular field say 'name'. Here is the snippet of updating a document in CouchDB which works fine and returns me the updated revision id.</p>
  
  <pre><code>HttpPut httpPutRequest = new HttpPut(hostUrl +"/"+ docId);
  StringEntity body = new StringEntity(jsonDoc.toString());
  httpPutRequest.setEntity(body);
  
  httpPutRequest.setHeader("Accept", "application/json");
  httpPutRequest.setHeader("Content-type", "application/json");
  </code></pre>