public JSONObject updateApiKey(String key, JSONObject params, RequestOptions requestOptions) throws AlgoliaException {
    return client.putRequest("/1/indexes/" + encodedIndexName + "/keys/" + key, params.toString(), requestOptions);
  }
public JSONObject updateApiKey ( String key , JSONObject params , RequestOptions requestOptions ) throws AlgoliaException { return client . putRequest ( "/1/indexes/" + encodedIndexName + "/keys/" + key , params . toString ( ) , requestOptions ) ; }
Update a new api key

@param params         the list of parameters for this key. Defined by a JSONObject that
can contains the following values:
- acl: array of string
- indices: array of string
- validity: int
- referers: array of string
- description: string
- maxHitsPerQuery: integer
- queryParameters: string
- maxQueriesPerIPPerHour: integer
@param requestOptions Options to pass to this request