public JSONObject addObject(JSONObject obj, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        return client.postRequest("/1/indexes/" + encodedIndexName, /* urlParameters: */ null, obj.toString(), false, requestOptions);
    }
public JSONObject addObject(JSONObject obj, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        return client.postRequest("/1/indexes/" + encodedIndexName,  null, obj.toString(), false, requestOptions);
    }
public JSONObject addObject ( JSONObject obj , @ Nullable RequestOptions requestOptions ) throws AlgoliaException { return client . postRequest ( "/1/indexes/" + encodedIndexName , /* urlParameters: */ null , obj . toString ( ) , false , requestOptions ) ; }
Adds an object in this index.

@param obj            the object to add.
@param requestOptions Request-specific options.
@throws AlgoliaException
Adds an object in this index .