Update thesaurus

put

/gsadmin/v1/{appName}/thesaurus

Updates thesaurus in the specified application.

Request

Supported Media Types
Path Parameters
Body ()
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.
Show Source
Security
Back to Top

Response

Supported Media Types

202 Response

Thesaurus successfully updated.
Body ()
Root Schema : Response
Type: object
Show Source
Back to Top

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" ]
  }
}
Back to Top