<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Update Module</title><link>https://sourceforge.net/p/sugaronrest/wiki/Update%2520Module/</link><description>Recent changes to Update Module</description><atom:link href="https://sourceforge.net/p/sugaronrest/wiki/Update%20Module/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 04 Mar 2017 12:37:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sugaronrest/wiki/Update%20Module/feed" rel="self" type="application/rss+xml"/><item><title>Update Module modified by Kola Oyewumi</title><link>https://sourceforge.net/p/sugaronrest/wiki/Update%2520Module/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1 +1,109 @@
-Update Module
+## Basic Usage
+This sample usage shows how to update "Bugs" module entity data. For more request options make changes to the [Options parameter](Request Options).
+
+This implements the **_set_entry_** SugarCRM REST API method.
+
+    :::java
+    package com.sugaronrest.tests;
+    
+    import com.sugaronrest.*;
+    import com.sugaronrest.modules.Bugs;
+    
+    import java.util.List;
+    import java.util.Map;
+    
+    String url = "http://demo.suiteondemand.com/service/v4_1/rest.php";
+    String username = "will";
+    String password = "will";
+    
+    SugarRestClient client = new SugarRestClient(url, username, password);
+    SugarRestRequest request = new SugarRestRequest(Bugs.class, RequestType.ReadById);
+    
+    String bugId = "2e1cbd26-a8ed-755b-23f1-5883cc4de3ae";
+    request.setParameter(bugId);
+    
+    // Read Bugs data
+    SugarRestResponse bugReadResponse = client.execute(request);
+    Bugs bugToUpdate = (Bugs)bugReadResponse.getData();
+    
+    request = new SugarRestRequest(Bugs.class, RequestType.Update);
+    
+    // Update description
+    bugToUpdate.setDescription("Now 7th floor printer");
+    request.setParameter(bugToUpdate);
+    
+    // Select fields.
+    List&amp;lt;String&amp;gt; selectFields = new ArrayList&amp;lt;String&amp;gt;();
+    selectFields.add(NameOf.Bugs.Name);
+    selectFields.add(NameOf.Bugs.Description);
+    selectFields.add(NameOf.Bugs.Status);
+    
+    request.getOptions().setSelectFields(selectFields);
+    
+    SugarRestResponse response = client.execute(request);
+
+### Response (getData())
+
+    :::java
+    String updatedBugId = (String)response.getData();
+
+### Response (getJData())
+
+    :::json
+    "2e1cbd26-a8ed-755b-23f1-5883cc4de3ae"
+
+### Response (getJsonRawRequest())
+
+    :::json
+    {
+      "method": "set_entry",
+      "input_type": "json",
+      "response_type": "json",
+      "rest_data": {
+        "session": "r46g62lphhehudmktsv8es9pc7",
+        "module_name": "Bugs",
+        "name_value_list": {
+          "name": {
+            "name": "name",
+            "value": "System crashed while running count query"
+          },
+          "description": {
+            "name": "description",
+            "value": "Now 7th floor printer"
+          },
+          "id": {
+            "name": "id",
+            "value": "2e1cbd26-a8ed-755b-23f1-5883cc4de3ae"
+          },
+          "status": {
+            "name": "status",
+            "value": "New"
+          }
+        }
+      }
+    }
+
+### Response (JsonRawResponse)
+
+    :::json
+    {
+      "id": "2e1cbd26-a8ed-755b-23f1-5883cc4de3ae",
+      "entry_list": {
+        "name": {
+          "name": "name",
+          "value": "System crashed while running count query"
+        },
+        "description": {
+          "name": "description",
+          "value": "Now 7th floor printer"
+        },
+        "id": {
+          "name": "id",
+          "value": "2e1cbd26-a8ed-755b-23f1-5883cc4de3ae"
+        },
+        "status": {
+          "name": "status",
+          "value": "New"
+        }
+      }
+    }
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kola Oyewumi</dc:creator><pubDate>Sat, 04 Mar 2017 12:37:19 -0000</pubDate><guid>https://sourceforge.net0d36456b6800dcb5af31ce3be429cacc76976899</guid></item><item><title>Update Module modified by Kola Oyewumi</title><link>https://sourceforge.net/p/sugaronrest/wiki/Update%2520Module/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Update Module&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kola Oyewumi</dc:creator><pubDate>Sat, 04 Mar 2017 12:37:16 -0000</pubDate><guid>https://sourceforge.net04b2ff288eea29d8682c2fdaccec547c2a6e41e2</guid></item></channel></rss>