Skip to main content
PUT
/
collections
/
{collection}
/
synonyms
/
{path}
Update a synonyms file
import requests

url = "https://{FUSION HOST}/api/collections/{collection}/synonyms/{path}"

payload = {
    "path": "<string>",
    "state": "NOT_READY"
}
headers = {"Content-Type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())

Path Parameters

collection
string
required

The name of a collection.

path
string
required

The path to a synonyms file.

Body

application/json

The file's new path and state.

path
string
state
enum<string>
Available options:
NOT_READY,
READY,
NOT_SAVED