Update a synonym entry
import requests
url = "https://{FUSION HOST}/api/collections/{collection}/synonyms/{path}/items/{id}"
payload = {
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": True,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": true,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>"
}Update a synonym entry
Update an entry in a synonyms file.
PUT
/
collections
/
{collection}
/
synonyms
/
{path}
/
items
/
{id}
Update a synonym entry
import requests
url = "https://{FUSION HOST}/api/collections/{collection}/synonyms/{path}/items/{id}"
payload = {
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": True,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"mapping": "<string>",
"category": "<string>",
"enabled": true,
"modified": "2023-11-07T05:31:56Z",
"user": "<string>"
}Headers
The Fusion user for authentication.
Path Parameters
The name of a collection.
The path to a synonyms file.
Pattern:
.*The unique ID of the synonym entry.
Query Parameters
If true, commit the change to Solr immediately instead of asynchronously.
Body
application/json
JSON-formatted synonym entries.
Was this page helpful?
⌘I