code: public JSONObject addObject(JSONObject obj, String objectID, RequestOptions requestOptions) throws AlgoliaException {
      try {
        return client.putRequest("/1/indexes/" + encodedIndexName + "/" + URLEncoder.encode(objectID, "UTF-8"), obj.toString(), requestOptions);
      } catch (UnsupportedEncodingException e) {
        throw new RuntimeException(e);
      }
    }
docs: Add an object in this index with a uniq identifier
  
  @param obj            the object to add
  @param objectID       the objectID associated to this object
  (if this objectID already exist the old object will be overriden)
  @param requestOptions Options to pass to this request