Update thesaurus

put

/gsadmin/v1/{appName}/thesaurus

Updates thesaurus in the specified application.

Request

Supported Media Types
  • application/json
  • application/zip
Path Parameters
appName
Type: string
Required: true
Specifies the name of your application, for example, Discover.
Body Parameter
The request body represents the updated thesaurus.
Root Schema : Thesaurus
Type: object
Represents the thesaurus in the ECR. Child nodes should represent thesaurus entries that conform to ThesaurusEntry JSON schema.
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

Supported Media Types
  • application/json
202 Response
Thesaurus successfully updated.
Body
Root Schema : Response
Type: object

Examples

Request Body Example

The following shows a sample request body to replace the configuration of thesaurus in its entirety. In this example, the configuration of the thesaurus contains two thesaurus-entry objects.

{
 "ecr:type" : "thesaurus",
 "auto_generated_id": 
  {
  "ecr:type" : "thesaurus-entry",
  "type": "one-way",
  "synonyms": [  "blouse"  ] 
  "searchTerms": "shirt"
  }
 "user_specified_id":
  {
  "ecr:type": "thesaurus-entry",
  "type": "multi-way",
  "synonyms": [ "converter","adapter","adapter-converter" ]
  }
}