Python
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())
Change a synonyms file’s state.
The name of a collection.
The path to a synonyms file.
The file's new path and state.
NOT_READY
READY
NOT_SAVED
Was this page helpful?