import javax.ws.rs.core.MultivaluedHashMap;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpResponse;
import com.adeptia.api.rest.utils.RestUtils;
import com.adeptia.indigo.event.oauth.error.Errors;


String url = "https://ebfr-test.crm.us2.oraclecloud.com/crmCommonApi/resources/11.1.11/accounts/170207";
String body = "{\"Comments\" : \"Test SAP39\"}";
 
MultivaluedHashMap headerMap = new MultivaluedHashMap();
headerMap.add("Content-Type", "application/vnd.oracle.adf.resourceitem+json");
headerMap.add("authorization", "Basic c3ZjcF9BZGVwdGlhOkcwbGRSdSRoNQ==");
 
Errors errors= new Errors();
 
HttpResponse res = RestUtils.invokePatchRequest(url, body, null, headerMap, null, errors);
 
String resString = IOUtils.toString(res.getEntity().getContent());

context.put("restResponse",resString);