Skip to main content
Required ACL: addObject If you want to use auto-generated object IDs, use the saveObject operation. To update some attributes of an existing record, use the partial operation instead. To add, update, or replace multiple records, use the batch operation.

Usage

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

// Call the API
var response = await client.AddOrUpdateObjectAsync(
  "<YOUR_INDEX_NAME>",
  "uniqueID",
  new Dictionary<string, string> { { "key", "value" } }
);
// >LOG

See the full API reference

For more details about input parameters and response fields.
I