POST
/
collections
/
{collection}
/
synonyms
/
{path}
/
items
Create synonym entries
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"
}

Headers

fusion-user-name
string

The Fusion user for authentication.

Path Parameters

collection
string
required

The name of a collection.

path
string
required

The path to a synonyms file.

Query Parameters

commit
boolean
default:true

If true, commit the change to Solr immediately instead of asynchronously.

Body

application/json

JSON-formatted synonym entries.

The body is of type object.

Response

200 - application/json

successful operation

The response is of type object.