Synonyms
Create or replace a synonym
If a synonym with the specified object ID doesn’t exist, Algolia adds a new one.
PUT
curl
Otherwise, the existing synonym is replaced.
To add multiple synonyms in a single API request, use the
batch operation.
Required ACL: editSettingsAuthorizations
Path Parameters
Body
application/json
Synonym object.
Word or phrase to appear in query strings (for onewaysynonyms).
Example:
"car"
Placeholder token to be put inside records.
Example:
"<Street>"
Word or phrase to appear in query strings (for altcorrection1 and altcorrection2).
Example:
"car"
Response
OK
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.
Example:
1514562690001
Last modified on March 23, 2026