curl --request POST \
--url https://{FUSION HOST}/api/collections/{collection}/synonyms/{path}/items \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": true,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>"
}'
{
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": true,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>",
"type": "EXPLICIT"
}
Add one or more new entries to a synonyms file.
curl --request POST \
--url https://{FUSION HOST}/api/collections/{collection}/synonyms/{path}/items \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": true,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>"
}'
{
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": true,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>",
"type": "EXPLICIT"
}
The Fusion user for authentication.
The name of a collection.
The path to a synonyms file.
If true, commit the change to Solr immediately instead of asynchronously.
JSON-formatted synonym entries.
The body is of type object
.
successful operation
The response is of type object
.
Was this page helpful?