Adds new attributes to a record, or updates existing ones.
createIfNotExists is true.To update an attribute without pushing the entire record, you can use these built-in operations. These operations can be helpful if you don’t have access to your initial data.
You can specify an operation by providing an object with the attribute to update as the key and its value being an object with the following properties:
When updating multiple attributes or using multiple operations targeting the same record, you should use a single partial update for faster processing.
This operation is subject to indexing rate limits.
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"
Whether to create a new record if it doesn't exist.
Attributes with their values.
Attributes to update.
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"