code: public static Endpoint update(final String domainId, final String endpointId, final String password, 
              final String applicationId, final String description, final boolean enabled) throws AppPlatformException, ParseException, Exception {
          final BandwidthClient client = BandwidthClient.getInstance();
          assert(domainId != null);
          assert(endpointId != null);
          assert(password != null);
          
          final Map<String, Object> params = new HashMap<String, Object>();
          
          final Map<String, String> credentials = new HashMap<String, String>();
          credentials.put("password", password);
          params.put("credentials", credentials);
          
          if(applicationId != null) {
              params.put("applicationId", applicationId);
          }
          if(description != null) {
              params.put("description", description);
          }
          params.put("enabled", Boolean.toString(enabled));
          
          final String domainsUri =  String.format(client.getUserResourceUri(BandwidthConstants.ENDPOINTS_URI_PATH), domainId)+ "/"+endpointId;
          final RestResponse response = client.post(domainsUri, params);
          final JSONObject jsonObject = toJSONObject(client.get(domainsUri, null));
          return new Endpoint(client, jsonObject);
      }
docs: Convenience method to update information about a specific Endpoint
  
  @param domainId the domain id.
  @param endpointId the endpoint id.
  @param password the endpoint password.
  @param applicationId the application id.
  @param description the endpoint description.
  @param enabled indicates if the endpoint is active or not.
  @return information about a specific Endpoint.
  @throws AppPlatformException API Exception
  @throws ParseException Error parsing data
  @throws Exception error