Required ACL:depends on operations performed inside the batchThis method lets you batch multiple indexing operations in one API request,
such as adding or deleting records, potentially targeting multiple indices.Benefits:
Reduced latency. Only one network trip is required for multiple operations.
Data integrity. All operations inside the batch are executed atomically.
Instead of deleting 30 records then adding 20 new records in two operations,
batching lets you combine both tasks in a single operation. This removes the time during which an index
is in an inconsistent state and could be a great alternative to atomic
reindexing using a temporary index.
When updating large numbers of records, be aware of the rate limitations on these processes and the impact on your analytics data. You’ll know you’ve reached the rate limit when you start receiving errors. This can only be resolved if you wait before sending any further indexing operations.
This section shows the JSON response returned by the API.
Each API client wraps this response in language-specific objects, so the structure may vary.
To view the response, use the getLogs method.
Don’t rely on the order of properties—JSON objects don’t preserve key order.