code: public JSONObject addObject(JSONObject obj, RequestOptions requestOptions) throws AlgoliaException {
      return client.postRequest("/1/indexes/" + encodedIndexName, obj.toString(), true, false, requestOptions);
    }
docs: Add an object in this index
  
  @param obj            the object to add
  @param requestOptions Options to pass to this request