Update thesaurus
put
/gsadmin/v1/{appName}/thesaurus
Updates thesaurus in the specified application.
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
The request body represents the updated thesaurus.
Root Schema : Thesaurus
Type:
objectRepresents the thesaurus in the ECR. Child nodes should represent thesaurus entries that conform to ThesaurusEntry JSON schema.
Show Source
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Thesaurus successfully updated.
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" ]
}
}