Skip to main content
Required ACL: addObject To use this method, you must have only one Push to Algolia connector. The API returns a 400 error if you have more than one Push connector, or you use Collections and a Push connector. For more information, see WithTransformation helper methods. This helper method creates push tasks with the addObject action and sends these requests in batches of 1,000. This method is subject to indexing rate limits and connector limits.

Usage

var response = await client.SaveObjectsWithTransformationAsync(
  "ALGOLIA_INDEX_NAME",
  new List<Object>
  {
    new Dictionary<string, string> { { "objectID", "1" }, { "name", "Adam" } },
    new Dictionary<string, string> { { "objectID", "2" }, { "name", "Benoit" } },
  },
  true
);

Parameters

indexName
string
required
Name of the index to save records to.
objects
[]map[string]any
required
Records to save.
opts...
ChunkedBatchOption
Functional options to provide extra arguments.
Last modified on February 25, 2026