code: public String doPut(String url, String body) throws IOException {
          HttpPut httpPut = new HttpPut(getWsapiUrl() + url);
          httpPut.setEntity(new StringEntity(body, "utf-8"));
          return doRequest(httpPut);
      }
docs: Perform a put against the WSAPI
  
  @param url  the request url
  @param body the body of the put
  @return the JSON encoded string response
  @throws IOException if a non-200 response code is returned or if some other
  problem occurs while executing the request