If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index.
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.
addObjectYour Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Name of the index on which to perform the operation.
"ALGOLIA_INDEX_NAME"
Unique record identifier.
"test-record-123"
The record. A schemaless object with attributes that are useful in the context of search and discovery.
The body is of type object.
OK
Response, taskID, unique object identifier, and an update timestamp.
Unique identifier of a task.
A successful API response means that a task was added to a queue.
It might not run immediately.
You can check the task's progress with the task operation and this task ID.
1514562690001
Date and time when the object was updated, in RFC 3339 format.
"2023-07-04T12:49:15Z"
Unique record identifier.
"test-record-123"