Skip to main content
Requires Admin API key Any unspecified attribute resets that attribute to its default value.

Usage

// Initialize the client
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));

// Call the API
var response = await client.UpdateApiKeyAsync(
  "ALGOLIA_API_KEY",
  new ApiKey
  {
    Acl = new List<Acl> { Enum.Parse<Acl>("Search"), Enum.Parse<Acl>("AddObject") },
    Validity = 300,
    MaxQueriesPerIPPerHour = 100,
    MaxHitsPerQuery = 20,
  }
);
// >LOG

See the full API reference

For more details about input parameters and response fields.
I