public JSONObject addApiKey(List<String> acls, int validity, int maxQueriesPerIPPerHour, int maxHitsPerQuery, RequestOptions requestOptions) throws AlgoliaException {
    return addApiKey(acls, validity, maxQueriesPerIPPerHour, maxHitsPerQuery, null, requestOptions);
  }
public JSONObject addApiKey ( List < String > acls , int validity , int maxQueriesPerIPPerHour , int maxHitsPerQuery , RequestOptions requestOptions ) throws AlgoliaException { return addApiKey ( acls , validity , maxQueriesPerIPPerHour , maxHitsPerQuery , null , requestOptions ) ; }
Create a new api key

@param acls                   the list of ACL for this key. Defined by an array of strings that
can contains the following values:
- search: allow to search (https and http)
- addObject: allows to add/update an object in the index (https only)
- deleteObject : allows to delete an existing object (https only)
- deleteIndex : allows to delete index content (https only)
- settings : allows to get index settings (https only)
- editSettings : allows to change index settings (https only)
@param validity               the number of seconds after which the key will be automatically removed (0 means no time limit for this key)
@param maxQueriesPerIPPerHour Specify the maximum number of API calls allowed from an IP address per hour.  Defaults to 0 (no rate limit).
@param maxHitsPerQuery        Specify the maximum number of hits this API key can retrieve in one call. Defaults to 0 (unlimited)
@param requestOptions         Options to pass to this request