code: private PostMethod getRequestMethod(boolean refresh, String id) throws UnsupportedEncodingException {
  		GOCTransport gocTransport = new GOCTransport();
  		EndpointInfo endpointInfo = gocTransport.getEndpointInfo(_config, _logger, refresh);
  
  		// Create upsert URI with PATCH method
  		PostMethod post = new PostMethod(String.format("%s/services/data/v25.0/sobjects/SM_Alert__c/%s/%s", endpointInfo.getEndPoint(),
  				urlEncode(GOCData.SM_ALERT_ID__C_FIELD), urlEncode(id))) {
  
  			@Override
  			public String getName() {
  				return "PATCH";
  			}
  		};
  		post.setRequestHeader("Authorization", "Bearer " + endpointInfo.getToken());
  		return post;
  	}
docs: ~ Methods **************************************************************************************************************************************