Update Synonyms

After you add, modify, or delete synonyms, Answer Server must update answer bank rules and other relevant data. If you change your synonyms through the IDOL Data Admin interface, the application sends information about the changes to Answer Server. However, you might interact with the AgentStore directly. For example, you might restore a backup of your synonym data. In this case you can instruct Answer Server that there have been changes in the synonym store by sending a ManageResources action. For example:

action=ManageResources
data={
   "operation":"refresh",
   "type":"synonym"
}

You can retrieve the full schema for the JSON object to use by using the GetResources action. See Find the JSON Schema for Your Update.

NOTE: The ManageResources action fails if you attempt to use request JSON that contains properties that are not contained in the appropriate schema.

TIP: Typically, OpenText recommends that you send ManageResources as a POST request. For testing, you can use a GET request, in which case you must base64 encode the JSON data.